]> git.baikalelectronics.ru Git - kernel.git/commit
ice: Add feature bitmap, helpers and a check for DSCP
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Fri, 16 Jul 2021 22:16:41 +0000 (15:16 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 28 Sep 2021 16:42:04 +0000 (09:42 -0700)
commit469155e8b26343a483c892d8f38de8cb4e80f333
treeffb705614bf808d59e7afb2958f0b27f585abe1d
parent0f638f2db6fec65c53c0b28d135a885db3d00944
ice: Add feature bitmap, helpers and a check for DSCP

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@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_dcb_nl.c
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_lib.h
drivers/net/ethernet/intel/ice/ice_main.c