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>
This commit is contained in:
committed by
Tony Nguyen
parent
2a87bd73e5
commit
40b247608b
@@ -4270,6 +4270,8 @@ ice_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent)
|
||||
goto err_exit_unroll;
|
||||
}
|
||||
|
||||
ice_init_feature_support(pf);
|
||||
|
||||
ice_request_fw(pf);
|
||||
|
||||
/* if ice_request_fw fails, ICE_FLAG_ADV_FEATURES bit won't be
|
||||
|
||||
Reference in New Issue
Block a user