[Intel-wired-lan] [PATCH v2 net-next 3/7] ice: Add DSCP support

G, GurucharanX gurucharanx.g at intel.com
Thu Sep 9 04:00:58 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf
> Of Tony Nguyen
> Sent: Saturday, August 7, 2021 2:24 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH v2 net-next 3/7] ice: Add DSCP
> support
>
> From: Dave Ertman <david.m.ertman at intel.com>
>
> Implement the code to handle submission of APP TLV's containing DSCP
> to TC mapping.
>
> The first such mapping received on an interface will cause that PF to
> switch to
> L3 DSCP QoS mode, apply the default config for that mode, and apply
> the received mapping.
>
> Only one such mapping will be allowed per DSCP value, and when the
> last DSCP mapping is deleted, the PF will switch back into L2 VLAN QoS
> mode, applying the appropriate default QoS settings.
>
> L3 DSCP QoS mode will only be allowed in SW DCBx mode, in other words,
> when the FW LLDP engine is disabled.  Commands that break this mutual
> exclusivity will be blocked.
>
> Co-developed-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> Signed-off-by: Dave Ertman <david.m.ertman at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> v2:
> - Add implementation for ndo_select_queue to remap the priority to
> match the DSCP2UP data
> - Adjust ice_get_pfc_mode() to return 0 instead of -EOPNOTSUPP when
> CONFIG_DCB is not defined
> ---
>  .../net/ethernet/intel/ice/ice_adminq_cmd.h   |  18 ++
>  drivers/net/ethernet/intel/ice/ice_dcb.c      | 225 ++++++++++++++++--
>  drivers/net/ethernet/intel/ice/ice_dcb.h      |  19 ++
>  drivers/net/ethernet/intel/ice/ice_dcb_lib.c  |   7 +-
>  drivers/net/ethernet/intel/ice/ice_dcb_lib.h  |  12 +
>  drivers/net/ethernet/intel/ice/ice_dcb_nl.c   | 188 ++++++++++++---
>  drivers/net/ethernet/intel/ice/ice_ethtool.c  |   7 +
>  drivers/net/ethernet/intel/ice/ice_main.c     |   1 +
>  drivers/net/ethernet/intel/ice/ice_txrx.c     |  34 +++
>  drivers/net/ethernet/intel/ice/ice_txrx.h     |   3 +
>  drivers/net/ethernet/intel/ice/ice_type.h     |  10 +-
>  11 files changed, 468 insertions(+), 56 deletions(-)
>

Tested-by: Gurucharan G <gurucharanx.g at intel.com> (A Contingent worker> at Intel)


More information about the Intel-wired-lan mailing list