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 81AE34584B; Thu, 22 Aug 2024 21:49:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3CC1A42FB3; Thu, 22 Aug 2024 21:48:30 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mails.dpdk.org (Postfix) with ESMTP id 71F7142FB1; Thu, 22 Aug 2024 21:48:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724356109; x=1755892109; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nencafhC2QsLnsdal1cSj2ubAZKY3+Vy4ATV/LRbHHk=; b=BUSMXOyO95rFgt6XclalwyMn4lodQyaU0kwZhACt9yHPmWvnxA+9qO1l Nffm6JyoUHE5Rg/+8o803shJPJrAQiV6IktYwbNVoZQ3od4soAy1YkFEj UjS6+vHLgDrR3TJ5NzMuHDJOHAaVULyZsiEl2IORZcooZDdSDBnJszadA /FPea59/fNsLsB6R5U2WNkw8WumQWTryr9PZ9besDxZ7/9fPHgiJ9I7kX Gn2WkPTl0yAO9ryjD5soOYxDzIfAkUZfOKZccXxJ5U0xkyPBX8IhiklN1 Gs+BKd5BDeKiQkvQPYNZ+6KGqAR5gMlyVxiLxCO1vlmHXb6RX6kvjcWmm g==; X-CSE-ConnectionGUID: p5+DgcK7RA+QnYE65lcgmQ== X-CSE-MsgGUID: B7Va5vT0TKmCdCLnyPZ/VA== X-IronPort-AV: E=McAfee;i="6700,10204,11172"; a="22979678" X-IronPort-AV: E=Sophos;i="6.10,168,1719903600"; d="scan'208";a="22979678" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2024 12:48:28 -0700 X-CSE-ConnectionGUID: FNiXNS1kSlSUriNRrwLuRg== X-CSE-MsgGUID: TFr4IgiHR8aic8xTpS7mOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,168,1719903600"; d="scan'208";a="92301440" Received: from unknown (HELO npf-hyd-clx-03..) ([10.145.170.182]) by orviesa002.jf.intel.com with ESMTP; 22 Aug 2024 12:48:26 -0700 From: Soumyadeep Hore To: bruce.richardson@intel.com, ian.stokes@intel.com, aman.deep.singh@intel.com Cc: dev@dpdk.org, shaiq.wani@intel.com, stable@dpdk.org Subject: [PATCH v2 07/12] net/ice: fix link speed for 200G Date: Thu, 22 Aug 2024 18:53:41 +0000 Message-ID: <20240822185346.221885-8-soumyadeep.hore@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240822185346.221885-1-soumyadeep.hore@intel.com> References: <20240822095612.216214-1-soumyadeep.hore@intel.com> <20240822185346.221885-1-soumyadeep.hore@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 When setting PHY configuration during driver initialization, 200G link speed is not being advertised even when the PHY is capable. This is because the get PHY capabilities link speed response is being masked by ICE_AQ_LINK_SPEED_M, which does not include 200G link speed bit. Fixes: d13ad9cf1721 ("net/ice/base: add helper functions for PHY caching") Cc: stable@dpdk.org Signed-off-by: Soumyadeep Hore --- drivers/net/ice/base/ice_adminq_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h index 6a89e1614a..3ec207927b 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1624,7 +1624,7 @@ struct ice_aqc_get_link_status_data { #define ICE_AQ_LINK_PWR_QSFP_CLASS_3 2 #define ICE_AQ_LINK_PWR_QSFP_CLASS_4 3 __le16 link_speed; -#define ICE_AQ_LINK_SPEED_M 0x7FF +#define ICE_AQ_LINK_SPEED_M 0xFFF #define ICE_AQ_LINK_SPEED_10MB BIT(0) #define ICE_AQ_LINK_SPEED_100MB BIT(1) #define ICE_AQ_LINK_SPEED_1000MB BIT(2) -- 2.43.0