From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 01081424C3; Wed, 12 Jun 2024 17:05:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AACEC40EE6; Wed, 12 Jun 2024 17:03:35 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 4741140E42 for ; Wed, 12 Jun 2024 17:03:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204613; x=1749740613; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IhO+Nqnexj8OL3G9xkdXaQqseYVdCV19I9FtwT27510=; b=VDNLUKHc+2FY4jJTNJLYWyLsxmJCCr8uGZIZ0qojAHlz9egdlBQ/LNaB ZGb3wCg8kXPXLK4p3qebDehxlKS62i9M+NuYbuvgCn8V1l4I08q9BE1Jn jch2jvT+o+Z3vNg3k+iEJghTvqgAchjsgkt/4yR8AiXxidnp8uiaouvWY yAaOktH+XX2j7Oog65h18emXjE5fZCcGB0rewBmBGzP7FFbZ8/KUZM68o WPSunrFyYu6Op1cHVVMzIPjmN3ymyQBwDefJwGvUQdDb6LrCn4lDqrM7T 0XGS+V8H9EOYCAB8GlosqWKTcRam0JrXH1jSm5RFufR6Tl3O2VqxoVTlu Q==; X-CSE-ConnectionGUID: YWxJg6hnQLm7PLiWXLCVLw== X-CSE-MsgGUID: p4LEy+RPQX+M7TjxUxdE3A== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459115" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459115" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:03:31 -0700 X-CSE-ConnectionGUID: 5EvLpkneQOCcRAzXcnRbdg== X-CSE-MsgGUID: bh5za5SeSe+uTnX0l0g6Xg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39924859" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:03:30 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Fabio Pricoco Subject: [PATCH v2 009/148] net/ice/base: add mgmt netlist auth support command Date: Wed, 12 Jun 2024 16:00:03 +0100 Message-ID: <05c9f7c2582eab5dbf9651686d5aa2620f30e2a1.1718204528.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Ian Stokes Add new Admin Q command to check if netlist auth is supported. Signed-off-by: Fabio Pricoco Signed-off-by: Ian Stokes --- 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