Dell Mellanox Family of Adapters User Manual
Page 31
User Manual for Mellanox ConnectX®-3 10/40 Gigabit Ethernet Adapters for Dell PowerEdge Servers
Rev 1.1
Mellanox Technologies
31
Configure QoS. map UP 0,7 to tc0, 1,2,3 to tc1 and 4,5,6 to tc 2. set tc0,tc1 as ets and tc2 as strict.
divide ets 30% for tc0 and 70% for tc1:
tc and tc_wrap.py
The 'tc' tool is used to setup
sk_prio
to UP mapping, using the
mqprio
queue discipline.
In kernels that do not support
mqprio
(such as 2.6.34), an alternate mapping is created in
sysfs
.
The 'tc_wrap.py' tool will use either the
sysfs
or the 'tc' tool to configure the
sk_prio
to UP
mapping.
Usage:
Options:
Example: set skprio 0-2 to UP0, and skprio 3-7 to UP1 on eth4
mlnx_qos -i eth3 -s ets,ets,strict -p 0,1,1,1,2,2,2 -t 30,70
tc: 0 ratelimit: 3 Gbps, tsa: ets, bw: 30%
up: 0
skprio: 0
skprio: 1
skprio: 2 (tos: 8)
skprio: 3
skprio: 4 (tos: 24)
skprio: 5
skprio: 6 (tos: 16)
skprio: 7
skprio: 8
skprio: 9
skprio: 10
skprio: 11
skprio: 12
skprio: 13
skprio: 14
skprio: 15
up: 7
tc: 1 ratelimit: 4 Gbps, tsa: ets, bw: 70%
up: 1
up: 2
up: 3
tc: 2 ratelimit: 2 Gbps, tsa: strict
up: 4
up: 5
up: 6
tc_wrap.py -i
--version
show program's version number and exit
-h, --help
show this help message and exit
-u SKPRIO_UP, --skprio_up=SKPRIO_UP maps sk_prio to UP. LIST is <=16 comma separated
UP. index of element is sk_prio.
-i INTF, --interface=INTF Interface name