freebsd-dev/sys/netpfil/ipfw
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
..
nat64 netinet: Remove unneeded mb_unmapped_to_ext() calls 2021-11-24 13:31:16 -05:00
nptv6 net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pmod net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
test net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_aqm_codel.c dummynet: use m_rcvif_serialize/restore when queueing packets 2022-01-26 21:58:50 -08:00
dn_aqm_codel.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_aqm_pie.c dummynet: don't use per-vnet locks to protect global data. 2022-02-07 22:59:46 +01:00
dn_aqm_pie.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_aqm.h dummynet: Fix schedlist and aqmlist locking 2021-06-03 09:02:49 +02:00
dn_heap.c
dn_heap.h
dn_sched_fifo.c
dn_sched_fq_codel_helper.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_fq_codel.c VNETify dummynet 2021-06-03 09:01:56 +02:00
dn_sched_fq_codel.h dummynet: use m_rcvif_serialize/restore when queueing packets 2022-01-26 21:58:50 -08:00
dn_sched_fq_pie.c dummynet: don't use per-vnet locks to protect global data. 2022-02-07 22:59:46 +01:00
dn_sched_prio.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_qfq.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_rr.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_wf2q.c dummynet: dn_dequeue() may return NULL 2022-01-28 23:09:08 +01:00
dn_sched.h dummynet: use m_rcvif_serialize/restore when queueing packets 2022-01-26 21:58:50 -08:00
dummynet.txt
ip_dn_glue.c ipfw: use unsigned int for dummynet bandwidth 2021-08-19 10:48:53 +02:00
ip_dn_io.c dummynet: use m_rcvif_serialize/restore when queueing packets 2022-01-26 21:58:50 -08:00
ip_dn_private.h dummynet: don't use per-vnet locks to protect global data. 2022-02-07 22:59:46 +01:00
ip_dummynet.c dummynet: don't use per-vnet locks to protect global data. 2022-02-07 22:59:46 +01:00
ip_fw2.c ipfw: fix possible data race between jump cache reading and updating. 2021-08-17 11:08:28 +03:00
ip_fw_bpf.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_dynamic.c ipfw: remove unnecessary TCP related includes 2021-11-18 00:54:28 -08:00
ip_fw_eaction.c
ip_fw_iface.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_log.c ipfw: remove unnecessary TCP related includes 2021-11-18 00:54:28 -08:00
ip_fw_nat.c Add required checks for unmapped mbufs in ipdivert and ipfw 2021-04-21 15:47:05 -04:00
ip_fw_pfil.c ipfw: Update the pfil mbuf pointer in ipfw_check_frame() 2021-06-16 09:46:56 -04:00
ip_fw_private.h ipfw: fix possible data race between jump cache reading and updating. 2021-08-17 11:08:28 +03:00
ip_fw_sockopt.c ipfw: plug set-but-not-used vars 2021-12-18 13:21:03 +00:00
ip_fw_table_algo.c ipfw: plug set-but-not-used vars 2021-12-18 13:21:03 +00:00
ip_fw_table_value.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_table.c ipfw: plug set-but-not-used vars 2021-12-18 13:21:03 +00:00
ip_fw_table.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00