User`s guide

XVI. Traffic Management
Chelsio T5/T4 Unified Wire For Linux Page 216
maximum-rate is the bit rate (Kbps) for this TCP stream. The lower limit is 300 Mbps and
600 Mbps for T4 and T5 adapters respectively.
Packet size is the TCP mss size in bytes; for example for an MTU of 1500, use a packet
size of 1460.
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
For additional binding options, run [root@host]# man tc
Note