Interface tables (a.k.a. kif) in pf(4) are currently protected
authorsashan <sashan@openbsd.org>
Tue, 22 Nov 2022 22:28:40 +0000 (22:28 +0000)
committersashan <sashan@openbsd.org>
Tue, 22 Nov 2022 22:28:40 +0000 (22:28 +0000)
commit6c44725cbd982622be7e34db9a33578d61031d16
treeb1c7e71561f01f76e10631a2f5941383e941e999
parentd0597228d649dfe02c625ae809eb45d33ae191b7
Interface tables (a.k.a. kif) in pf(4) are currently protected
by NET_LOCK() only. This change makes them protected by PF_LOCK().
Having this change in tree will allow us to remove NET_LOCK()
protection from ioctl(2) code path in pf(4).

OK dlg@, kn@
sys/net/pf_if.c