User`s guide

XVI. Traffic Management
Chelsio T5/T4 Unified Wire For Linux Page 217
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.
Both the methods have been described below:
Applying COP policy
1. Bring up the interface:
[root@host]# ifconfig ethX up
2. Create a new policy file (say new_policy_file) and add the following line to associate
connections with the given scheduling class.
E.g.:
src host 102.1.1.1 => offload class 0
The above example will associate all connections originating from IP address 102.1.1.1 with
scheduling 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 ethX policy <output_policy_file>
Where,
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.
Note