From: Ian Stokes <ian.sto...@intel.com>

Add new Admin Q command to check if netlist auth is supported.

Signed-off-by: Fabio Pricoco <fabio.pric...@intel.com>
Signed-off-by: Ian Stokes <ian.sto...@intel.com>
---
 drivers/net/ice/base/ice_common.c | 5 +++++
 drivers/net/ice/base/ice_type.h   | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/drivers/net/ice/base/ice_common.c 
b/drivers/net/ice/base/ice_common.c
index 1d666b7708..113620ff0a 100644
--- a/drivers/net/ice/base/ice_common.c
+++ b/drivers/net/ice/base/ice_common.c
@@ -2495,6 +2495,11 @@ ice_parse_common_caps(struct ice_hw *hw, struct 
ice_hw_common_caps *caps,
                        true : false;
                ice_debug(hw, ICE_DBG_INIT, "%s: nvm_unified_update = %d\n", 
prefix,
                          caps->nvm_unified_update);
+               caps->netlist_auth =
+                       (number & ICE_NVM_MGMT_NETLIST_AUTH_SUPPORT) ?
+                       true : false;
+               ice_debug(hw, ICE_DBG_INIT, "%s: netlist_auth = %d\n", prefix,
+                         caps->netlist_auth);
                break;
        case ICE_AQC_CAPS_MAX_MTU:
                caps->max_mtu = number;
diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h
index d13105070b..e7bd2215ce 100644
--- a/drivers/net/ice/base/ice_type.h
+++ b/drivers/net/ice/base/ice_type.h
@@ -602,9 +602,11 @@ struct ice_hw_common_caps {
        bool sec_rev_disabled;
        bool update_disabled;
        bool nvm_unified_update;
+       bool netlist_auth;
 #define ICE_NVM_MGMT_SEC_REV_DISABLED          BIT(0)
 #define ICE_NVM_MGMT_UPDATE_DISABLED           BIT(1)
 #define ICE_NVM_MGMT_UNIFIED_UPD_SUPPORT       BIT(3)
+#define ICE_NVM_MGMT_NETLIST_AUTH_SUPPORT      BIT(5)
        /* PCIe reset avoidance */
        bool pcie_reset_avoidance; /* false: not supported, true: supported */
        /* Post update reset restriction */
-- 
2.43.0

Reply via email to