On 3/26/21 6:50 AM, Simon Horman wrote:
> From: Baowen Zheng <[email protected]>
> 
> 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 actions add action police pkts_rate 1000 pkts_burst 200 index 1
>  # $TC actions ls action police
>  total acts 1
> 
>       action order 0:  police 0x1 rate 0bit burst 0b mtu 4096Mb pkts_rate 
> 1000 pkts_burst 200
>       ref 1 bind 0
> 
> Signed-off-by: Baowen Zheng <[email protected]>
> Signed-off-by: Simon Horman <[email protected]>
> Signed-off-by: Louis Peens <[email protected]>
> ---
>  man/man8/tc-police.8 | 35 ++++++++++++++++++++++++-------
>  tc/m_police.c        | 50 +++++++++++++++++++++++++++++++++++++++++---
>  2 files changed, 75 insertions(+), 10 deletions(-)
> 

applied to iproute2-next.

Reply via email to