User`s guide

XVI. Traffic Management
Chelsio T5/T4 Unified Wire For Linux Page 214
4. Software/Driver Configuration and Fine-tuning
4.1. Traffic Management Rules
Traffic Management supports the following types of scheduler hierarchy levels which can be
configured using the cxgbtool utility:
i. Class Rate Limiting
ii. Class Weighted Round Robin
iii. Channel Rate Limiting
4.1.1. Class Rate Limiting
This scheduler hierarchy level can be used to rate limit individual traffic classes or individual
connections (flow) in a traffic class.
Class rate limiting can be configured using the following command:
[root@host]# cxgbtool <ethX> sched-class params type packet level cl-rl
mode <scheduler-mode> rate-unit <scheduler-rate-unit> rate-mode
<scheduler-rate-mode> channel <Channel No.> class <scheduler-class-index>
max-rate <maximum-rate> pkt-size <Packet size>
Here,
ethX is the Chelsio interface
scheduler-mode specifies whether the rule is configured for individual traffic classes or
individual connections (flow) in a traffic class. Possible values include flow or class.
scheduler-rate-unit specifies whether the rule is configured for bit-rate or packet rate .
Possible values include bits or pkts
scheduler-rate-mode specifies whether the rule is configured to support a percent of the
channel rate or an effective rate. Possible values include relative or absolute.
Channel No. is the port on which data is flowing (0-3).
scheduler-class-index is the TCP traffic class (0-14)
maximum-rate is the bit rate (Kbps) for this TCP stream.
Packet size is the TCP mss size in bytes; for example for an MTU of 1500, use a packet
size of 1460.
flow scheduler-mode and pkts scheduler-rate-unit are not supported in this
release
Note