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 4BA6845895; Thu, 29 Aug 2024 11:01:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0ADD42DC9; Thu, 29 Aug 2024 11:00:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by mails.dpdk.org (Postfix) with ESMTP id A575442D76 for ; Thu, 29 Aug 2024 11:00:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724922039; x=1756458039; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=tO//HlOLa0cQK0MMR/xpAj1aUyQGc5ASH610CZ88sgU=; b=RGtsttLTjDIOtnDiCDF6sJjTq/bCCmmw8CbdiD8nGVVwiE9/pa7TxtlD j7G1NZnvmI5ELaS4YLmfdhF7sfzkd5nrCxUFSZBtrlpiwpV4zHIB6NjXE CGdP99u4wTn9q356Go/ZkmRFFC0CqbaMXnWbFFKTvgvqvuFyt1iEsdS8M 9nqEYxRF5jXXeaNt0DWskqI/0TYjcAQKLzmu5dwV7Xf9G+GiwYti482sY LXUaSNZnUhVS/KDxTMCAuQjN9cjUnrN1pP0f16ESqec726cpyW8YFtqKy scnApvl+eR1soVXeB5MTxDhKY9LorSCBjeukQpfb5LN7f4dI6ouKNbKc2 w==; X-CSE-ConnectionGUID: H1l2lXDfSFK8oFmBWPjo7Q== X-CSE-MsgGUID: fGqm+CLcQwCnvsGZMfK9lQ== X-IronPort-AV: E=McAfee;i="6700,10204,11178"; a="23663470" X-IronPort-AV: E=Sophos;i="6.10,185,1719903600"; d="scan'208";a="23663470" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2024 02:00:37 -0700 X-CSE-ConnectionGUID: 5b1SablpRuywjHjN88N8qA== X-CSE-MsgGUID: N1vEw/BGTyunA53mByVpJw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,185,1719903600"; d="scan'208";a="64202950" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa008.jf.intel.com with ESMTP; 29 Aug 2024 02:00:36 -0700 From: Anatoly Burakov To: dev@dpdk.org Subject: [PATCH v1 10/15] net/ixgbe/base: handle 5G link speed for E610 Date: Thu, 29 Aug 2024 10:00:15 +0100 Message-ID: X-Mailer: git-send-email 2.43.5 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: Piotr Kwapulinski When detecting the 5G link speed take into account the E610 VF MAC type in ixgbe_check_mac_link_vf(). Signed-off-by: Piotr Kwapulinski Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_vf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_vf.c b/drivers/net/ixgbe/base/ixgbe_vf.c index 0d5b29ba50..37556a9300 100644 --- a/drivers/net/ixgbe/base/ixgbe_vf.c +++ b/drivers/net/ixgbe/base/ixgbe_vf.c @@ -628,7 +628,8 @@ s32 ixgbe_check_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed *speed, break; case IXGBE_LINKS_SPEED_100_82599: *speed = IXGBE_LINK_SPEED_100_FULL; - if (hw->mac.type == ixgbe_mac_X550_vf) { + if (hw->mac.type == ixgbe_mac_X550_vf || + hw->mac.type == ixgbe_mac_E610_vf) { if (links_reg & IXGBE_LINKS_SPEED_NON_STD) *speed = IXGBE_LINK_SPEED_5GB_FULL; } -- 2.43.5