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 155B2454EF; Tue, 25 Jun 2024 13:23:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E48A42D89; Tue, 25 Jun 2024 13:18:12 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id B482142C24 for ; Tue, 25 Jun 2024 13:16:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314216; x=1750850216; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4q8ly9ugtlwH2FdNjcoD//sDiQNDOZPNSlg4d6+ngtk=; b=VW1EVXPAkvc2OuhY5dpvLZ6MsHMbFkbk42dH8utjogBIZcrLFxTUd6YG W3imwZhGUe8Vh7S9Ch4NQv3RA3EKyN0fAKtMt3Y9cb6A+y5EP8EgRZ0FN IRu8IcP/TQQibrKNoJBGk10EE30OeqMZB8wrHAsRNpH3GKaBUchu5akHZ FCrkoWQX7tGb37nf7SDXFV2E5NWw0M0bFHZlzqQqqV/M32EIrwyNY68L9 IOetEC3XiqHpI48Io56Z9qSWK+jDilLsupUR+94v0O83nS9BSGrTwNzkO j/UtMplBRhao4QRkMlbzjfkIcOnfO2I0m8hqCyqnz59d5lnAtzCE22jUE g==; X-CSE-ConnectionGUID: D8vLVk0wS5unq/q8dJDX2w== X-CSE-MsgGUID: B4OF02hVREKFmC2ekDu71w== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080295" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080295" 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:16:43 -0700 X-CSE-ConnectionGUID: 6Vd3YvVbRkuNNYFzFEZ//w== X-CSE-MsgGUID: e6tCbuCqTF6ka/zjgm3UMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719347" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:16:43 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Remigiusz Konca , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 064/129] net/ice/base: enable Next Cluster ID capability Date: Tue, 25 Jun 2024 12:13:09 +0100 Message-ID: <93253f644c8d15eb1f0e5df0d494575473ff0805.1719313663.git.anatoly.burakov@intel.com> 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 ce2c3f878c..3ef20fe39f 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -2548,6 +2548,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