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 BD82145501; Wed, 26 Jun 2024 14:01:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 673534341F; Wed, 26 Jun 2024 13:56:09 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 91BFF42E95 for ; Wed, 26 Jun 2024 13:44:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402280; x=1750938280; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6W4upSCM+P00qXEtGvVy5fKdku6TT2DzNHDkR+G+CGY=; b=JYb2D7iKnVFDwImjQ5iP/cr5Jovg03TZTZFXpBirQpz0dahLlkX7gQGd 25seqfYwi3peJYgVartC7eicM6OFHCXJh61Xuu+3996v9pKcpKS5xrXqy gDPQT6LekW/7YXHXdXl6MiITGQjnNOf1t5JPI8E2kEvO3lomI83oqylIZ 4PFcChUK7fkQiOpz89b7HuGINvEGJ/Q67WrDPU7ysbq6b64erbpRioss2 rl7aMgJTaIgeq7t5UIo3gwFbx4Kzjs9/QiGRLd10Cznpy4zJp2ymrGpuB awpLYW8OGtT1EiR1qONA5PM0tUul0atoKG9yW6YAWgfJYgLfCfOP4hD7b w==; X-CSE-ConnectionGUID: 8Yxhs380T5qu7ZKjQB6qNw== X-CSE-MsgGUID: 6Xgh3fTpRom3JFDHI4tofQ== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979453" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979453" 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:40 -0700 X-CSE-ConnectionGUID: crLkEB0iT0aPcNJU8x/Z5w== X-CSE-MsgGUID: hexc7xSRRneVU35yXT8Z+g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43874026" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:44:39 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Dan Nowlin , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 060/103] net/ice/base: add 200G speeds to PHY types decoding Date: Wed, 26 Jun 2024 12:41:48 +0100 Message-ID: <6039c815491f1d84ed523028872ceadd3ac0a025.1719401848.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: Dan Nowlin Add the 200G speeds to the ice_get_link_speed_based_on_phy_type function. This allows detection of 200G speed instead of UKNOWN. Signed-off-by: Dan Nowlin Signed-off-by: Alice Michael Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_adminq_cmd.h | 1 + drivers/net/ice/base/ice_common.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h index 848bbef393..ef6284f263 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1651,6 +1651,7 @@ struct ice_aqc_get_link_status_data { #define ICE_AQ_LINK_SPEED_40GB BIT(8) #define ICE_AQ_LINK_SPEED_50GB BIT(9) #define ICE_AQ_LINK_SPEED_100GB BIT(10) +#define ICE_AQ_LINK_SPEED_200GB BIT(11) #define ICE_AQ_LINK_SPEED_UNKNOWN BIT(15) __le32 reserved3; /* Aligns next field to 8-byte boundary */ __le64 phy_type_low; /* Use values from ICE_PHY_TYPE_LOW_* */ diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 76688d8062..de87df8f60 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -3386,6 +3386,18 @@ ice_get_link_speed_based_on_phy_type(u64 phy_type_low, u64 phy_type_high) case ICE_PHY_TYPE_HIGH_100G_AUI2: speed_phy_type_high = ICE_AQ_LINK_SPEED_100GB; break; + case ICE_PHY_TYPE_HIGH_200G_CR4_PAM4: + case ICE_PHY_TYPE_HIGH_200G_SR4: + case ICE_PHY_TYPE_HIGH_200G_FR4: + case ICE_PHY_TYPE_HIGH_200G_LR4: + case ICE_PHY_TYPE_HIGH_200G_DR4: + case ICE_PHY_TYPE_HIGH_200G_KR4_PAM4: + case ICE_PHY_TYPE_HIGH_200G_AUI4_AOC_ACC: + case ICE_PHY_TYPE_HIGH_200G_AUI4: + case ICE_PHY_TYPE_HIGH_200G_AUI8_AOC_ACC: + case ICE_PHY_TYPE_HIGH_200G_AUI8: + speed_phy_type_high = ICE_AQ_LINK_SPEED_200GB; + break; default: speed_phy_type_high = ICE_AQ_LINK_SPEED_UNKNOWN; break; -- 2.43.0