
XIX. Traffic Management
Chelsio T5/T4 Unified Wire For Linux Page 259
4.2. Configuring Traffic Management
4.2.1. For Non-offloaded connections
Traffic Management of non-offloaded connections is a 2-step process. In the first step bind
connections to indicated NIC TX queue using tc utility from iproute2-3.9.0 package. In the
second step bind the indicated NIC TX queue to the specified TC Scheduler class using the
cxgbtool utility.
1. Bring up the interface:
[root@host]# ifconfig ethX up
2. Bind connections to queues:
[root@host]# tc qdisc add dev ethX root handle 1: multiq
[root@host]# tc filter add dev ethX parent 1: protocol ip prio 1 u32 match
ip dst <IP address of destination> action skbedit queue_mapping <queue>
3. Now, bind the NIC TX queue with traffic class:
[root@host]# cxgbtool ethX sched-queue <queue> <class>
Here,
ethX is the Chelsio interface
queue is the NIC TX queue
class is the TX scheduler class
4.2.2. For Offloaded connections
Traffic Management of offloaded connections can be configured either by applying COP policies
that associate offloaded connections to classes or by modifying the application.
If the TX queue is all, * or any negative value, the binding will apply to all of the TX
queues associated with the interface. If the class is unbind, clear or any negative
value, the TX queue(s) will be unbound from any current TX Scheduler Class
binding.
For additional binding options, run [root@host]# man tc
Comentários a estes Manuais