
XVI. Traffic Management
Copyright ©2013.Chelsio Communications. All Rights Reserved. Page 214
5. Usage
5.1. Non-Offloaded Connections
The following example demonstrates the method to rate limit all TCP connections on class 0 at
a rate of 300 Mbps for Non-offload connections:
1. Load the Network driver in NIC mode.
[root@host]# modprobe cxgb4
2. Bind the NIC TX queue to class 0
[root@host]# cxgbtool ethX sched-queue 0 0
3. Set the appropriate rule for class 0
[root@host]# cxgbtool ethX sched-class params type packet level cl-rl
mode class rate-unit bits rate-mode absolute channel 0 class 0 max-rate
300000 pkt-size 1460
5.2. Offloaded Connections
The following example demonstrates the method to rate limit all TCP connections on class 0 at
a rate of 300 Mbps for offloaded connections:
1. Load the Network driver in TOE mode
[root@host]# modprobe t4_tom
2. Create a new policy file (say new_policy_file) and add the following line to associate
connections with the given scheduling class.:
src host 102.1.1.1 => offload class 0
Comentários a estes Manuais