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)
Tue, Nov 25, 8:42 PM
Unknown Object (File)
Tue, Nov 25, 12:20 PM
Unknown Object (File)
Sun, Nov 23, 12:14 PM
Unknown Object (File)
Thu, Nov 20, 11:26 PM
Unknown Object (File)
Sun, Nov 16, 7:59 PM
Unknown Object (File)
Sat, Nov 15, 1:38 AM
Unknown Object (File)
Thu, Nov 6, 11:24 PM
Unknown Object (File)
Nov 3 2025, 4:41 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.