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 B25E4454EF; Tue, 25 Jun 2024 13:16:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D562D427E3; Tue, 25 Jun 2024 13:15:37 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 9082842759 for ; Tue, 25 Jun 2024 13:15:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314114; x=1750850114; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=T7iwf3XCbN+z2hypQVqaLxstlYriYEve/XOP68iTix0=; b=NdFM6kfN4qzUfKdPVzxZ3kNZpJnA7Domyk0yILmBJfSll7eCUtMMd3SM XMyfx3FaqezyG1Rmwym4f+UNlL9OAB9AYl0W6NSh2qne4D3wdT+n0iaDB iM4wGue6TP0eVuwBR2b7Z8gV4cBzLo5OE9xf9pGdNoHW8UPDPBMU3w2T9 R2O4ye1xczNr0aGvaO3DZm7vxD/bo3eBu2h1MlNsG8SSThv7522gi/ZCB 1ffX35Q4bORW8+9bQ/czAkqu8hVzejUQjcJwWWlCseuEtoW1TwGSH7t8j 1Q360qDjItPE1tX8pTTXT7fcDLol8dgTKFd9XcqSekGMT91s2+0VSlAKy w==; X-CSE-ConnectionGUID: KcXq/lzASmeEqr0CMtCyIA== X-CSE-MsgGUID: EbR8Z8jQTvSQZBCQgiVOEQ== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080081" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080081" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:15:14 -0700 X-CSE-ConnectionGUID: TwrIKoS9Rh67djJFF5MyRw== X-CSE-MsgGUID: 3mqzRmsNT52/i6HIzPi1iA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43718901" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:15:13 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Fabio Pricoco , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 009/129] net/ice/base: add mgmt netlist auth support command Date: Tue, 25 Jun 2024 12:12:14 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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: Fabio Pricoco 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 278baf3848..ad0cfe0e40 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