freebsd-dev/sys/netpfil
Kristof Provost 3f3e4f3c74 dummynet: don't use per-vnet locks to protect global data.
The ref_count counter is global (i.e. not per-vnet) so we can't use a
per-vnet lock to protect it. Moreover, in callouts curvnet is not set,
so we'd end up panicing when trying to use DN_BH_WLOCK().

Instead we use the global sched_lock, which is already used when
evaluating ref_count (in unload_dn_aqm()).

Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D34059
2022-02-07 22:59:46 +01:00
..
ipfilter/netinet ipfilter: Fix indentation error 2022-02-03 08:37:11 -08:00
ipfw dummynet: don't use per-vnet locks to protect global data. 2022-02-07 22:59:46 +01:00
pf pf: deal with tables gaining or losing counters 2022-02-05 10:29:34 +01:00