[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190906.150236.2142448918782013970.davem@davemloft.net>
Date: Fri, 06 Sep 2019 15:02:36 +0200 (CEST)
From: David Miller <davem@...emloft.net>
To: zdai@...ux.vnet.ibm.com
Cc: jhs@...atatu.com, xiyou.wangcong@...il.com, jiri@...nulli.us,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
zdai@...ibm.com
Subject: Re: [v3] net_sched: act_police: add 2 new attributes to support
police 64bit rate and peakrate
From: David Dai <zdai@...ux.vnet.ibm.com>
Date: Wed, 4 Sep 2019 10:03:43 -0500
> For high speed adapter like Mellanox CX-5 card, it can reach upto
> 100 Gbits per second bandwidth. Currently htb already supports 64bit rate
> in tc utility. However police action rate and peakrate are still limited
> to 32bit value (upto 32 Gbits per second). Add 2 new attributes
> TCA_POLICE_RATE64 and TCA_POLICE_RATE64 in kernel for 64bit support
> so that tc utility can use them for 64bit rate and peakrate value to
> break the 32bit limit, and still keep the backward binary compatibility.
>
> Tested-by: David Dai <zdai@...ux.vnet.ibm.com>
> Signed-off-by: David Dai <zdai@...ux.vnet.ibm.com>
> ---
> Changelog:
> v1->v2:
> - Move 2 attributes TCA_POLICE_RATE64 TCA_POLICE_PEAKRATE64 after
> TCA_POLICE_PAD in pkt_cls.h header.
> v2->v3:
> - Use TCA_POLICE_PAD instead of __TCA_POLICE_MAX as padding attr
> in last parameter in nla_put_u64_64bit() routine.
Applied to net-next.
Powered by blists - more mailing lists