HomeFreeBSD

pf: allow table stats clearing and reading with ruleset rlock

Description

pf: allow table stats clearing and reading with ruleset rlock

Instead serialize against these operations with a dedicated lock.

Prior to the change, When pushing 17 mln pps of traffic, calling
DIOCRGETTSTATS in a loop would restrict throughput to about 7 mln. With
the change there is no slowdown.

Reviewed by: kp (previous version)
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
mjgAuthored on Jul 2 2021, 12:55 PM
Parents
rGf92c21a28cd8: pf: depessimize table handling
Branches
Unknown
Tags
Unknown