lkml.org 
[lkml]   [2019]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [v3] iproute2-next: police: support 64bit rate and peakrate in tc utility
From
Date
On 9/4/19 9:06 AM, David Dai wrote:
> 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). Taking advantage of the 2 new
> attributes TCA_POLICE_RATE64 and TCA_POLICE_PEAKRATE64 from kernel,
> tc can use them to break the 32bit limit, and still keep the backward
> binary compatibility.
>
> Tested-by: David Dai <zdai@linux.vnet.ibm.com>
> Signed-off-by: David Dai <zdai@linux.vnet.ibm.com>
> ---
> Changelog:
> v1->v2:
> - Change patch submit component from iproute2 to iproute2-next
> - Move 2 attributes TCA_POLICE_RATE64 TCA_POLICE_PEAKRATE64 after
> TCA_POLICE_PAD in pkt_cls.h header to be consistent with kernel's
> pkt_cls.h header.
> v2->v3:
> - Use common functions of duparg and invarg in police filter.
> ---
> include/uapi/linux/pkt_cls.h | 2 +
> tc/m_police.c | 149 +++++++++++++++++++-----------------------
> tc/tc_core.c | 29 ++++++++
> tc/tc_core.h | 3 +
> 4 files changed, 102 insertions(+), 81 deletions(-)
>

applied to iproute2-next.


\
 
 \ /
  Last update: 2019-09-15 19:38    [W:0.040 / U:9.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site