Page MenuHomeFreeBSD

pf: use counter_rate() for rate checking
ClosedPublic

Authored by kp on Jun 11 2025, 7:40 PM.
Tags
None
Referenced Files
F150419773: D50797.id156837.diff
Wed, Apr 1, 2:09 AM
Unknown Object (File)
Tue, Mar 31, 12:42 AM
Unknown Object (File)
Sun, Mar 29, 7:25 PM
Unknown Object (File)
Tue, Mar 24, 6:34 PM
Unknown Object (File)
Tue, Mar 24, 6:27 AM
Unknown Object (File)
Tue, Mar 24, 4:32 AM
Unknown Object (File)
Sat, Mar 21, 2:16 PM
Unknown Object (File)
Sat, Mar 21, 2:13 PM

Details

Summary

This has the advantage of not requiring a lock. The current src node code runs
the rate check under a lock, so this won't immediately improve performance.
This prepares the way for future work, introducing packet rate matching on
rules, where the lack of lock will be important.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jun 25 2025, 5:57 PM
This revision was automatically updated to reflect the committed changes.