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 DB60C454EF; Tue, 25 Jun 2024 13:25:03 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D302A43003; Tue, 25 Jun 2024 13:18:32 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id AEAB342D8C for ; Tue, 25 Jun 2024 13:17:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314229; x=1750850229; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2Xa5gNxhR2KySfE501WjwVOKIEE2uvk/lDmjGOWy+QE=; b=a/oL0lRLLbrnn8C6FXP8r9DmVH6fUSMBELyGWyoG/+WTocJT5iBvH41d GrsbLVqAtHqj7M7eQ/ywnmzXtek1CKE1rKrePV9RyHxo3Sycjte655sCO OKdBxiXbd/k/oumi3nxnjqZKUcXFi2Q7fUtyd3ai6WIN99rh39xzc2Hi/ WhI8lqnmgHD/kZSnpL3/LmFomSI7zbQ1zkhltk2qRexGpGYiFCFNohpUf +EB2tcRl55Exjcskne/+qPcgeULdD0vOSxpTwBfD8kFW15nxtP9lQRdE9 wn1beV4L8/4ebX+zTjv+REeVQVa6B2tj3SKz5+9bta3bfhl7I/AUtZHNm w==; X-CSE-ConnectionGUID: 6CSZIZWVQ1OwHrLcx1HSqg== X-CSE-MsgGUID: 0a8fP0SXQGGD5igg/D5KGQ== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080395" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080395" 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:17:07 -0700 X-CSE-ConnectionGUID: ErvCJ86lQKOf765QO6ZbRw== X-CSE-MsgGUID: btr5DgpIRMW43rlx4wCLaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719498" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:17:07 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Dan Nowlin , bruce.richardson@intel.com, ian.stokes@intel.com, Alice Michael Subject: [PATCH v3 080/129] net/ice/base: add 200G speeds to PHY types decoding Date: Tue, 25 Jun 2024 12:13:25 +0100 Message-ID: <40f796e2ab44763892bfa99fce2793c549ae4d21.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: 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 636d5b36c6..ea1ff6b0ea 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -3383,6 +3383,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