HomeFreeBSD

LinuxKPI: add net_ratelimit()

Description

LinuxKPI: add net_ratelimit()

Add a net_ratelimit() compat implementation based on ppsratecheck().
Add a sysctl to allow tuning of the number of messages.

Sponsored-by: The FreeBSD Foundation
Reviewed-by: hselasky
Differential Revision: https://reviews.freebsd.org/D29399

(cherry picked from commit bc042266b2bfc3f52f685df7ccdd6e857b4b9da9)

Details

Provenance
hselaskyAuthored on Nov 12 2021, 2:43 PM
Differential Revision
D29399: LinuxKPI: add net_ratelimit()
Parents
rG80be188a8160: Fix the build after b3c1846830af71ee197dcfbdd9a6bea5980cbbdd
Branches
Unknown
Tags
Unknown