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)
Wed, Mar 4, 6:19 AM
Unknown Object (File)
Fri, Feb 27, 6:09 PM
Unknown Object (File)
Sun, Feb 8, 2:05 PM
Unknown Object (File)
Sun, Feb 8, 12:41 PM
Unknown Object (File)
Jan 31 2026, 9:40 AM
Unknown Object (File)
Nov 25 2025, 8:42 PM
Unknown Object (File)
Nov 25 2025, 12:20 PM
Unknown Object (File)
Nov 23 2025, 12:14 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.