Significantly improve pf purge cpu usage by only taking locks
authorJohn-Mark Gurney <jmg@FreeBSD.org>
Sun, 16 Sep 2018 00:44:23 +0000 (00:44 +0000)
committerJohn-Mark Gurney <jmg@FreeBSD.org>
Sun, 16 Sep 2018 00:44:23 +0000 (00:44 +0000)
commit032d3aaa9607e1010d5ae766ea55d3474c434395
tree64cbabe88cb694cf685b1858209866c9ad3e7a5a
parentf5450581eb434154ad2a4f8c597269919727e6a3
Significantly improve pf purge cpu usage by only taking locks
when there is work to do.  This reduces CPU consumption to one
third on systems.  This will help keep the thread CPU usage under
control now that the default hash size has increased.

Reviewed by: kp
Approved by: re (kib)
Differential Revision: https://reviews.freebsd.org/D17097
sys/netpfil/pf/pf.c