pf: Fix definitions of pf_pfil_*_hooked
authorMark Johnston <markj@FreeBSD.org>
Wed, 14 Dec 2022 14:29:59 +0000 (09:29 -0500)
committerMark Johnston <markj@FreeBSD.org>
Wed, 14 Dec 2022 14:29:59 +0000 (09:29 -0500)
commit57cc96f49e1fd49602f12f6b58bddb5112d4e0bc
treea8ceec905e452532f788cb8e42a5634bcf705c06
parent1596d28026be67f6b3fbaa48357818c374d4798f
pf: Fix definitions of pf_pfil_*_hooked

This use of "volatile" in the vnet definitions doesn't have any effect.
VNET_DEFINE_STATE(volatile int, ...) should work, but let's avoid using
"volatile" altogether and convert to atomic_load/atomic_store.  Also
convert to bool while here.

Reviewed by: kp, mjg
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37684
sys/netpfil/pf/pf_ioctl.c