Commit 66ef878c authored by Peiyang Wang's avatar Peiyang Wang Committed by Jiantao Xiao
Browse files

net: hns3: support tc limit rate

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7YRUW


CVE: NA

----------------------------------------------------------------------

Traffic class is supposed to support limit rate. Different tc will be
configured different rate. The followed tc command can be used.

tc qdisc add dev eth0 root mqprio num_tc 4 map 0 1 2 3 0 1 2 3 queues 8@0
8@8 8@16 8@24 hw 1 mode channel shaper bw_rlimit max_rate 10gbps 1gbps
100mbps 10mbps

As showed the aboved command, the eth0 has 4 tcs and the limit rate are
80 Gbits/sec, 8 Gbits/sec, 800 Mbits/sec and 80 Mbits/sec respectively.

Signed-off-by: default avatarPeiyang Wang <wangpeiyang1@huawei.com>
parent 04595b55
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment