OpenBSD cvs log

created 2022-11-18T17:04:04Z
begin 2022-11-11T13:59:40Z
end 2022-11-11T15:02:31Z
path src/sys
commits 1

date 2022-11-11T15:02:31Z
author dlg
files src/sys/net/pf.c log diff annotate
src/sys/net/pfvar_priv.h log diff annotate
message add a mutex to struct pf_state and init it.

nothing is protected by it yet but it will allow us to provide
consistent updates to individual states without relying on a global
lock. getting that right between the packet processing in pf itself,
pfsync, the pf purge code, the ioctl paths, etc is not worth the
required contortions.

while pf_state does grow, it doesn't use more cachelines on machines
where we will want to run in parallel with a lot of states.

stolen from and ok sashan@