make if_pfsync.c a better friend with PF_LOCK
authorsashan <sashan@openbsd.org>
Thu, 4 Feb 2021 00:55:41 +0000 (00:55 +0000)
committersashan <sashan@openbsd.org>
Thu, 4 Feb 2021 00:55:41 +0000 (00:55 +0000)
commit2d1fcc79dc4d10fc9b63bb9bf17c5622eda82c67
tree5ebf4ca1bcc947321b5b8a11c656a90f239edd29
parent6f55e1ac3a19a9e13c1ccd7e3050c6871bb19685
make if_pfsync.c a better friend with PF_LOCK

The code delivered in this change is currently disabled. Brave souls
may enable the code by adding -DWITH_PF_LOCK when building customized
kernel. Big thanks goes to Hrvoje@ for providing test equipment and
testing.

As soon as we enter the next release cycle, the WITH_PF_LOCK will be
defined as default option for MP kernels.

OK dlg@
sys/arch/amd64/conf/GENERIC.MP
sys/net/if_pfsync.c
sys/net/if_pfsync.h
sys/net/pf.c