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)
Nov 23 2025, 12:14 PM
Unknown Object (File)
Nov 20 2025, 11:26 PM
Unknown Object (File)
Nov 16 2025, 7:59 PM
Unknown Object (File)
Nov 15 2025, 1:38 AM
Unknown Object (File)
Nov 6 2025, 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.