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 4875F4404F; Wed, 12 Jun 2024 17:17:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B660442EDB; Wed, 12 Jun 2024 17:05:41 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id ADC9942EB9 for ; Wed, 12 Jun 2024 17:05: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=1718204733; x=1749740733; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wUE84IZvyXXuK07SbFFcsma/+QNq4kCOgPOgdwkeKOg=; b=X4gPy6SsmEM7+MmgLxYutTowT7TCYND1HxbUihjKx63PXRMghJ+I5ulU CIwC3qZpevoAYgEbdDN8Aolq/hkc18zprdiOqsoo+cCNI2a8x+fmHJBYD dTFwUyQuUX5rZ+lmOFMNsnRNRKnJKuLy3jkVpsi7378eqLeb1Jja/t+vp tByi8AWZlaBvxY5TZg/KLCc2bkMghi9ZG7iwlQbKo6piPcbBrHkQIiQZu 7K30L+ouzSuhZjwL16fLyKFI6yo9RKaQhADGw5zV37p7ogCv/UJIBPBDZ kofXI1spVeXepKW70Ux/42AAIJcCwEDhXfSazqCUwbzUX86fSdpWkbnRN g==; X-CSE-ConnectionGUID: HJYzOBJxScmynPuGdOQJtA== X-CSE-MsgGUID: agrmbfIjTwyPeHUPTEmBNw== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459703" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459703" 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:05:32 -0700 X-CSE-ConnectionGUID: ptZcCrUSRBmgT58etBww4w== X-CSE-MsgGUID: 26Av/g8/RkmdqM9z9CzBhA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925578" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:05:31 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Remigiusz Konca Subject: [PATCH v2 082/148] net/ice/base: enable Next Cluster ID capability Date: Wed, 12 Jun 2024 16:01:16 +0100 Message-ID: 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 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 8e8ed66d45..242a71f0ac 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -132,7 +132,7 @@ struct ice_aqc_list_caps_elem { #define ICE_AQC_CAPS_ROCEV2_LAG 0x0092 #define ICE_AQC_BIT_ROCEV2_LAG 0x01 #define ICE_AQC_BIT_SRIOV_LAG 0x02 - +#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 891b7f0aa8..efa98ec151 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -2453,6 +2453,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 3a4833a0e1..d9d3e3ee0b 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