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")

(cherry picked from commit dc1ab04e4c9ede3606985e0cce1200e3060ac166)

Details

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