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, Jul 16, 8:44 AM
Unknown Object (File)
Thu, Jul 3, 12:57 AM
Unknown Object (File)
Wed, Jul 2, 11:11 AM
Unknown Object (File)
Tue, Jul 1, 9:10 AM
Unknown Object (File)
Sun, Jun 29, 4:22 PM
Unknown Object (File)
Fri, Jun 27, 5:56 AM
Unknown Object (File)
Thu, Jun 26, 10:12 AM
Unknown Object (File)
Jun 25 2025, 7:02 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64765
Build 61649: arc lint + arc unit

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.