Page MenuHomeFreeBSD

pf: use counter_rate() for rate checking
ClosedPublic

Authored by kp on Jun 11 2025, 7:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 8, 9:39 AM
Unknown Object (File)
Apr 29 2026, 10:30 AM
Unknown Object (File)
Apr 27 2026, 2:11 PM
Unknown Object (File)
Apr 21 2026, 4:59 AM
Unknown Object (File)
Apr 12 2026, 1:18 AM
Unknown Object (File)
Apr 11 2026, 12:39 AM
Unknown Object (File)
Apr 7 2026, 1:55 AM
Unknown Object (File)
Apr 6 2026, 1:38 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.