HomeFreeBSD

Significantly improve pf purge cpu usage by only taking locks

Description

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

Details