Page MenuHomeFreeBSD

pf: use counter_rate() for rate checking
ClosedPublic

Authored by kp on Jun 11 2025, 7:40 PM.
Tags
None
Referenced Files
F169544551: D50797.id157610.diff
Tue, Sep 1, 9:18 PM
F169542565: D50797.id156837.diff
Tue, Sep 1, 9:10 PM
F169492310: D50797.id.diff
Tue, Sep 1, 5:01 PM
F169488061: D50797.diff
Tue, Sep 1, 4:40 PM
Unknown Object (File)
Sun, Aug 30, 10:45 PM
Unknown Object (File)
Sun, Aug 30, 5:37 PM
Unknown Object (File)
Sun, Aug 30, 5:37 PM
Unknown Object (File)
Sun, Aug 30, 5:16 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.