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 636DA4404F; Wed, 12 Jun 2024 17:19:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CAD8242F49; Wed, 12 Jun 2024 17:06:01 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 0777242F2D for ; Wed, 12 Jun 2024 17:05:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204758; x=1749740758; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kwOLfiqTHBpuZtb+VLC6AMJFPHvvQugFtZS13XuGQow=; b=apGCkGcQudfzfvS+lH+hn8Xv8MGgzNDqdCVCeXkEK1xKFX00b8QvUFBR +k332TN66UwP7wjXzFQC8AAjzhqHG+9hQuPMLGp8qADu94fxLOR1gMCAv rQ4pyokXZCF/0fEUSJVRul+kEif9PezYYpeF+aa9r+x0S1ONltGiqR6z6 SZRCclznHEa7cGRd7r6AcKWfuT6bqCacv/eyTfQXnoGXxp6oMJnWPyOsy ai+y3mkoOEQsh9SdbnWAJ2p2cmAP+1DSnFwrx1tmeL/uDNs0NOiQ39NQd mRbbic9d2riNuMxe/FHujaj4P1ccwRWIyvtbNUxnYLoLWbzjpkDpyq4Uh g==; X-CSE-ConnectionGUID: e/obbSxfTsCcWXAQPqqWmw== X-CSE-MsgGUID: lgxt00OmQ/OX+uyEhdOM5w== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459819" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459819" 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:58 -0700 X-CSE-ConnectionGUID: HjQPRx4JQ1irzbONlMYRjQ== X-CSE-MsgGUID: q5Fvs6dJR8qm1t8kKQ4xtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925752" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:05:56 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Dan Nowlin , Alice Michael Subject: [PATCH v2 098/148] net/ice/base: add 200G speeds to PHY types decoding Date: Wed, 12 Jun 2024 16:01:32 +0100 Message-ID: <39d4408f75d30e6ffa02a1772598c2893d8ba112.1718204529.git.anatoly.burakov@intel.com> 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 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 2c3ae88fa4..a14f5f6140 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1624,6 +1624,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 3fa46ea494..bd808cca6b 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -3407,6 +3407,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