Skip to content

Commit bad87ee

Browse files
vcgomesJeff Kirsher
authored andcommitted
Documentation: igb: Add a section about CBS
Add some pointers to the definition of the CBS algorithm, and some notes about the limits of its implementation in the i210 family of controllers. Signed-off-by: Vinicius Costa Gomes <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 6f9ae17 commit bad87ee

File tree

1 file changed

+19
-0
lines changed
  • Documentation/networking/device_drivers/intel

1 file changed

+19
-0
lines changed

Documentation/networking/device_drivers/intel/igb.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,25 @@ rate limit using the IProute2 tool. Download the latest version of the
177177
IProute2 tool from Sourceforge if your version does not have all the features
178178
you require.
179179

180+
Credit Based Shaper (Qav Mode)
181+
------------------------------
182+
When enabling the CBS qdisc in the hardware offload mode, traffic shaping using
183+
the CBS (described in the IEEE 802.1Q-2018 Section 8.6.8.2 and discussed in the
184+
Annex L) algorithm will run in the i210 controller, so it's more accurate and
185+
uses less CPU.
186+
187+
When using offloaded CBS, and the traffic rate obeys the configured rate
188+
(doesn't go above it), CBS should have little to no effect in the latency.
189+
190+
The offloaded version of the algorithm has some limits, caused by how the idle
191+
slope is expressed in the adapter's registers. It can only represent idle slopes
192+
in 16.38431 kbps units, which means that if a idle slope of 2576kbps is
193+
requested, the controller will be configured to use a idle slope of ~2589 kbps,
194+
because the driver rounds the value up. For more details, see the comments on
195+
:c:func:`igb_config_tx_modes()`.
196+
197+
NOTE: This feature is exclusive to i210 models.
198+
180199

181200
Support
182201
=======

0 commit comments

Comments
 (0)