[Intel-wired-lan] [PATCH next-queue v3 3/3] igc: Add support for CBS offloading

Fuxbrumer, Dvora dvorax.fuxbrumer at linux.intel.com
Wed Aug 18 21:11:24 UTC 2021


On 8/9/2021 17:53, aravindhan.gunasekaran at intel.com wrote:
> From: Aravindhan Gunasekaran <aravindhan.gunasekaran at intel.com>
> 
> Implemented support for Credit-based shaper(CBS) Qdisc hardware
> offload mode in the driver. There are two sets of IEEE802.1Qav
> (CBS) HW logic in i225 controller and this patch supports
> enabling them in the top two priority TX queues.
> 
> Driver implemented as recommended by Foxville External
> Architecture Specification v0.993. Idleslope and Hi-credit are
> the CBS tunable parameters for i225 NIC, programmed in TQAVCC
> and TQAVHC registers respectively.
> 
> In-order for IEEE802.1Qav (CBS) algorithm to work as intended
> and provide BW reservation CBS should be enabled in highest
> priority queue first. If we enable CBS on any of low priority
> queues, the traffic in high priority queue does not allow low
> priority queue to be selected for transmission and bandwidth
> reservation is not guaranteed.
> 
> Signed-off-by: Aravindhan Gunasekaran <aravindhan.gunasekaran at intel.com>
> Signed-off-by: Mallikarjuna Chilakala <mallikarjuna.chilakala at intel.com>
> ---
>   drivers/net/ethernet/intel/igc/igc.h         |  11 ++-
>   drivers/net/ethernet/intel/igc/igc_defines.h |   8 +++
>   drivers/net/ethernet/intel/igc/igc_main.c    |  71 ++++++++++++++++++
>   drivers/net/ethernet/intel/igc/igc_regs.h    |   3 +
>   drivers/net/ethernet/intel/igc/igc_tsn.c     | 103 +++++++++++++++++++++++++++
>   5 files changed, 195 insertions(+), 1 deletion(-)
> 
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer at linux.intel.com>


More information about the Intel-wired-lan mailing list