Page MenuHomeFreeBSD

pf: use counter_rate() for rate checking
ClosedPublic

Authored by kp on Jun 11 2025, 7:40 PM.
Tags
None
Referenced Files
F132175928: D50797.id156837.diff
Tue, Oct 14, 11:51 AM
Unknown Object (File)
Sat, Sep 20, 7:04 AM
Unknown Object (File)
Sep 9 2025, 12:55 AM
Unknown Object (File)
Sep 7 2025, 7:44 PM
Unknown Object (File)
Sep 7 2025, 7:36 PM
Unknown Object (File)
Sep 7 2025, 2:24 PM
Unknown Object (File)
Sep 3 2025, 10:37 PM
Unknown Object (File)
Sep 3 2025, 1:48 AM

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.