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:Peiyang Wang <wangpeiyang1@huawei.com>
Loading
Please sign in to comment