Page MenuHomeFreeBSD

pf: use counter_rate() for rate checking
ClosedPublic

Authored by kp on Wed, Jun 11, 7:40 PM.
Tags
None
Referenced Files
F121819877: D50797.id156837.diff
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)
Wed, Jun 25, 7:02 PM
Unknown Object (File)
Wed, Jun 25, 4:44 PM
Unknown Object (File)
Tue, Jun 24, 9:23 PM
Unknown Object (File)
Tue, Jun 24, 3:03 AM
Unknown Object (File)
Fri, Jun 20, 4:11 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.Wed, Jun 25, 5:57 PM
This revision was automatically updated to reflect the committed changes.