[Intel-wired-lan] [PATCH net-next 4/7] ice: Add feature bitmap, helpers and a check for DSCP

G, GurucharanX gurucharanx.g at intel.com
Thu Sep 9 03:57:12 UTC 2021


> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf
> Of Tony Nguyen
> Sent: Saturday, July 17, 2021 3:47 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH net-next 4/7] ice: Add feature
> bitmap, helpers and a check for DSCP
>
> From: Anirudh Venkataramanan <anirudh.venkataramanan at intel.com>
>
> DSCP a.k.a L3 QoS is only supported on certain devices. To enforce
> this, this patch introduces a bitmap of features and helper functions.
>
> The feature bitmap is set based on device IDs on driver init.
> Currently, DSCP is the only feature in this bitmap, but there will be
> more in the future. In the DCB netlink flow, check if the feature bit is set
before exercising DSCP.
>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice.h        |  6 +++
>  drivers/net/ethernet/intel/ice/ice_dcb_nl.c |  8 +++-
>  drivers/net/ethernet/intel/ice/ice_lib.c    | 47 +++++++++++++++++++++
>  drivers/net/ethernet/intel/ice/ice_lib.h    |  2 +
>  drivers/net/ethernet/intel/ice/ice_main.c   |  2 +
>  5 files changed, 63 insertions(+), 2 deletions(-)
>

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


More information about the Intel-wired-lan mailing list