HomeFreeBSD

pf: Fix definitions of pf_pfil_*_hooked

Description

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

Details

Provenance
markjAuthored on Dec 14 2022, 2:29 PM
Reviewer
kp
Differential Revision
D37684: pf: Fix definitions of pf_pfil_*_hooked
Parents
rG1596d28026be: if_ovpn: fix LINT-NOIP build
Branches
Unknown
Tags
Unknown