Page MenuHomeFreeBSD

pf: use counter_rate() for rate checking
ClosedPublic

Authored by kp on Jun 11 2025, 7:40 PM.
Tags
None
Referenced Files
F163236292: D50797.diff
Tue, Jul 21, 7:39 AM
Unknown Object (File)
Sat, Jul 18, 1:37 AM
Unknown Object (File)
Thu, Jul 16, 7:37 AM
Unknown Object (File)
Wed, Jul 15, 7:26 PM
Unknown Object (File)
Sat, Jul 4, 9:18 PM
Unknown Object (File)
Fri, Jul 3, 9:20 AM
Unknown Object (File)
Wed, Jun 24, 12:19 AM
Unknown Object (File)
Tue, Jun 23, 6:31 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 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.