opnsense-src/sys/dev/netmap
Vincenzo Maffione 7ba6ecf216 netmap: refactor netmap_reset
The netmap_reset() function is meant to be called by the driver
when they initialize (or re-initialize) a hardware ring.
However, since the introduction of support for opening (in
netmap mode) a subset of the available rings, netmap_reset()
may be called multiple times on actively used rings, causing
both kring and netmap ring to transition to an inconsistent
state.
This changes improves the situation by resetting all the
indices fields of the kring to 0, as expected after the
reinitialization of a hardware ring.

PR:	    252518
MFC after:  1 week
2021-01-09 22:07:24 +00:00
..
if_ptnet.c Use NET_TASK_INIT() and NET_GROUPTASK_INIT() for drivers that process 2020-02-11 18:57:07 +00:00
if_re_netmap.h
if_vtnet_netmap.h netmap: vtnet: fix races in vtnet_netmap_reg() 2020-06-14 20:47:31 +00:00
netmap.c netmap: refactor netmap_reset 2021-01-09 22:07:24 +00:00
netmap_bdg.c add valectl to the system commands 2019-10-31 21:01:34 +00:00
netmap_bdg.h
netmap_freebsd.c Make page busy state deterministic on free. Pages must be xbusy when 2019-12-22 06:56:44 +00:00
netmap_generic.c netmap: enter NET_EPOCH on generic txsync 2019-10-28 19:00:27 +00:00
netmap_kern.h netmap: introduce netmap_kring_on() 2020-06-11 20:35:28 +00:00
netmap_kloop.c netmap: import changes from upstream (SHA 137f537eae513) 2019-09-01 14:47:41 +00:00
netmap_legacy.c netmap: fix parsing of legacy nmr->nr_ringid 2020-08-18 08:03:28 +00:00
netmap_mbq.c
netmap_mbq.h
netmap_mem2.c netmap: fix mutex double unlock bug 2020-10-22 20:21:11 +00:00
netmap_mem2.h
netmap_monitor.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_null.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_offloadings.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_pipe.c netmap: refactor logging macros and pipes 2019-02-05 12:10:48 +00:00
netmap_vale.c netmap: vale: fix disabled logs 2020-06-03 05:49:19 +00:00