User Manual

Rev 2.2-1.0.1
Mellanox Technologies
93
4.6.8.2 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:
tc_wrap.py -i <interface> [options]
Options:
--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
Example: set skprio 0-2 to UP0, and skprio 3-7 to UP1 on eth4
up: 1
up: 2
up: 3
tc: 2 ratelimit: 2 Gbps, tsa: strict
up: 4
up: 5
up: 6
UP 0
skprio: 0
skprio: 1
skprio: 2 (tos: 8)
skprio: 7
skprio: 8
skprio: 9
skprio: 10
skprio: 11
skprio: 12
skprio: 13
skprio: 14
skprio: 15
UP 1
skprio: 3
skprio: 4 (tos: 24)
skprio: 5
skprio: 6 (tos: 16)