diff options
author | 2021-03-12 15:08:31 +0100 | |
---|---|---|
committer | 2021-03-13 14:18:09 -0800 | |
commit | 2ffe0395288aa237ff7e0143366bd1cd57bfc5b7 (patch) | |
tree | e6afb13e32102f6b667b8f69c9a9cf9a0f270755 /include/net/psample.h | |
parent | flow_offload: reject configuration of packet-per-second policing in offload drivers (diff) | |
download | linux-rng-2ffe0395288aa237ff7e0143366bd1cd57bfc5b7.tar.xz linux-rng-2ffe0395288aa237ff7e0143366bd1cd57bfc5b7.zip |
net/sched: act_police: add support for packet-per-second policing
Allow a policer action to enforce a rate-limit based on packets-per-second,
configurable using a packet-per-second rate and burst parameters.
e.g.
tc filter add dev tap1 parent ffff: u32 match \
u32 0 0 police pkts_rate 3000 pkts_burst 1000
Testing was unable to uncover a performance impact of this change on
existing features.
Signed-off-by: Baowen Zheng <baowen.zheng@corigine.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Louis Peens <louis.peens@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/psample.h')
0 files changed, 0 insertions, 0 deletions