XIX. Traffic Management
5. Usage
5.1.
Non-Offloaded Connections
The following example demonstrates the method to rate limit all TCP connections on class 0 to
a rate of 300 Mbps for Non-offload connections:
1. Load the Network driver in NIC mode.
[root@host]# modprobe cxgb4
2.
Bind connections with destination IP address 192.168.5.3 to NIC TX queue 3
[root@host]# tc qdisc add dev eth0 root handle 1: multiq
[root@host]# tc filter add dev eth0 parent 1: protocol ip prio 1 u32
ip dst 192.168.5.3 action skbedit queue_mapping 3
3. Bind the NIC TX queue to class 0
[root@host]# cxgbtool eth0 sched-queue 3 0
4. Set the appropriate rule for class 0
[root@host]# cxgbtool eth0 sched-class params
mode class
rate-unit bits
300000
pkt-size 1460
5.2.
Offloaded Connections
The following example demonstrates the method to rate limit all TCP connections on class 0 to
a rate of 300 Mbps for offloaded connections:
1. Load the Network driver in TOE mode
[root@host]# modprobe t4_tom
Chelsio T5/T4 Unified Wire For Linux
rate-mode absolute channel 0
type packet
level cl-rl
class 0 max-rate
match
Page 262
Need help?
Do you have a question about the Chelsio T5 and is the answer not in the manual?
Questions and answers