[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7ac9bca6-9680-b586-8d63-4c34e596ff10@gmail.com>
Date: Mon, 29 Mar 2021 21:09:28 -0600
From: David Ahern <dsahern@...il.com>
To: Simon Horman <simon.horman@...ronome.com>
Cc: netdev@...r.kernel.org, oss-drivers@...ronome.com,
Baowen Zheng <baowen.zheng@...igine.com>,
Louis Peens <louis.peens@...ronome.com>
Subject: Re: [PATCH iproute2-next] police: add support for packet-per-second
rate limiting
On 3/26/21 6:50 AM, Simon Horman wrote:
> From: Baowen Zheng <baowen.zheng@...igine.com>
>
> 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 <baowen.zheng@...igine.com>
> Signed-off-by: Simon Horman <simon.horman@...ronome.com>
> Signed-off-by: Louis Peens <louis.peens@...ronome.com>
> ---
> man/man8/tc-police.8 | 35 ++++++++++++++++++++++++-------
> tc/m_police.c | 50 +++++++++++++++++++++++++++++++++++++++++---
> 2 files changed, 75 insertions(+), 10 deletions(-)
>
applied to iproute2-next.
Powered by blists - more mailing lists