]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: make sure rings are disabled during resets
authorVincenzo Maffione <vmaffione@FreeBSD.org>
Sat, 17 Apr 2021 14:01:20 +0000 (14:01 +0000)
committerVincenzo Maffione <vmaffione@FreeBSD.org>
Sat, 17 Apr 2021 14:02:47 +0000 (14:02 +0000)
commit13c4641188d4f012644c39c34499d96a5bbe50af
tree7716080a65e2852c386f0ead225a6806c3ac2221
parentd1de2b05a001d3d80f633f576f4909c2686dda3d
netmap: make sure rings are disabled during resets

Explicitly disable ring synchronization before calling
callbacks that may result in a hardware reset.

Before this patch we relied on capturing the down/up events which,
however, may not be issued by all drivers.
sys/dev/netmap/netmap.c
sys/dev/netmap/netmap_kern.h