User`s guide

XVI. Traffic Management
Chelsio T5/T4 Unified Wire For Linux Page 221
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
3. Compile the policy file using COP
[root@host]# cop -d o <output_policy_file> <new_policy_file>
4. Apply the COP policy:
[root@host]# cxgbtool eth0 policy <output_policy_file>
5. 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.3. Offloaded Connections with Modified Application
The following example demonstrates the method to rate limit all TCP connections on class 0 to
a rate of 300 Mbps for for offloaded connections with modified application.
1. Load the Network driver in TOE mode.
[root@host]# modprobe t4_tom
2. Modify the application as mentioned in the Configuring Traffic Management section.
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