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 5FC3E45500; Wed, 26 Jun 2024 13:59:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B981F433CF; Wed, 26 Jun 2024 13:55:51 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 65A8242E95 for ; Wed, 26 Jun 2024 13:44: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=1719402254; x=1750938254; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p/5o69/wTgCO960yl5/EHhUR8grcDgCyYcbNlqVVPdo=; b=YEfGiduq2PXPhGJz2kuwI5mWv8vGDPrfes2cD3uRnDB/Mwzp8Cbe7IML UVJRad4MiyzEDhj6IY0IzmLpmsBGb4qHo6EORpOs5sGkqwUTrsu18iimY 65sxtvBGN8zDeHvmMWADnGb2d03F3e+a3abgPBUMQNc9rvrimbSgWZb/+ f+SA4oxGSfKsM2x0kYtNWh94RTZN/nMto3t0rJEWNTxE9qRyDBk1Q9/XA ZlVmG1wm0wsPNMffsstR2nzD5vC0zYxxDn4erLIYuZlXwEe3zRQzCWAXc YzuB9uiJr+2hS7voK7jS2RKwcvIr/OKEG2DoGWFKl4aDFEoAiX1mICMBi w==; X-CSE-ConnectionGUID: TzhK909nR8W0Dmq4zUnXNg== X-CSE-MsgGUID: 4BeCQ6FqScCDZnGEeq4e7A== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979414" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979414" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:44:14 -0700 X-CSE-ConnectionGUID: fFBQ89iOR5GBgV6sTvASFw== X-CSE-MsgGUID: mbFkn3dNQjuPrhekp+LoYg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873910" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:44:13 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Remigiusz Konca , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 044/103] net/ice/base: enable Next Cluster ID capability Date: Wed, 26 Jun 2024 12:41:32 +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: Remigiusz Konca Updated data sheet added a new capability 'Next Cluster ID' defined as 0x0096, so add a define for it. Signed-off-by: Remigiusz Konca Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_adminq_cmd.h | 2 +- drivers/net/ice/base/ice_common.c | 5 +++++ drivers/net/ice/base/ice_type.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h index fdff750b2f..4a20a7ac35 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -131,7 +131,7 @@ struct ice_aqc_list_caps_elem { #define ICE_AQC_CAPS_NAC_TOPOLOGY 0x0087 #define ICE_AQC_CAPS_OROM_RECOVERY_UPDATE 0x0090 #define ICE_AQC_CAPS_ROCEV2_LAG 0x0092 - +#define ICE_AQC_CAPS_NEXT_CLUSTER_ID 0x0096 u8 major_ver; u8 minor_ver; /* Number of resources described by this capability */ diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 480708b2f9..079df60cab 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -2551,6 +2551,11 @@ ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps, ice_debug(hw, ICE_DBG_INIT, "%s: orom_recovery_update = %d\n", prefix, caps->orom_recovery_update); break; + case ICE_AQC_CAPS_NEXT_CLUSTER_ID: + caps->next_cluster_id_support = (number == 1); + ice_debug(hw, ICE_DBG_INIT, "%s: next_cluster_id_support = %d\n", + prefix, caps->next_cluster_id_support); + break; default: /* Not one of the recognized common capabilities */ found = false; diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h index c94567b83c..2a4e325993 100644 --- a/drivers/net/ice/base/ice_type.h +++ b/drivers/net/ice/base/ice_type.h @@ -723,6 +723,7 @@ struct ice_hw_common_caps { bool tx_sched_topo_comp_mode_en; /* Support for OROM update in Recovery Mode */ bool orom_recovery_update; + bool next_cluster_id_support; }; /* IEEE 1588 TIME_SYNC specific info */ -- 2.43.0