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 0B16143EAD for ; Wed, 24 Apr 2024 15:22:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8FE743483; Wed, 24 Apr 2024 15:22:18 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by mails.dpdk.org (Postfix) with ESMTP id 0C74343483; Wed, 24 Apr 2024 15:22:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713964937; x=1745500937; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3+1q1rJsnAnHbPex4c0izxH0zCks4iPMXqmPPj95sEI=; b=Qn2YQGDryTdgfgzVdQ3fwe/A491j5T5FJILjhjEB44SdHum4SXHNaMja j0QP3GH7i712GlO4wD8ZV/xFO5w/50QgsAThN5cihGHEYi7LgjMniCYPN UMaGK+CdEcgByvnXGGNwLTwV9elYqm1iox78C33gaiUuwWD87yeTY8mXu yLizM0slV48lzipSO8RbOsxQdhe00NItfUKopwM9GlNKDV5CT5Ym2R3D3 UdPaO4TH0v1qUGUGY3y5rG7x6VHJUkKs4ZVQ6ZtZxEF6k/wrut8yO2kJF w4IGmaIPuy3DbA4WwuHn96N9hjZvNlv56etoONhvsO/a5zuJgUFP7eRzT Q==; X-CSE-ConnectionGUID: QD795TRJSyKK1HnfaPTC5A== X-CSE-MsgGUID: RRlF7KKESbWlnegvRGF63g== X-IronPort-AV: E=McAfee;i="6600,9927,11054"; a="20289237" X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="20289237" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2024 06:22:17 -0700 X-CSE-ConnectionGUID: 5w4SC7NkR5Ce+dphUy2UhA== X-CSE-MsgGUID: cvqXuc38SgCC+rgQygH31Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,226,1708416000"; d="scan'208";a="24749286" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by fmviesa006.fm.intel.com with ESMTP; 24 Apr 2024 06:22:14 -0700 From: Anatoly Burakov To: dev@dpdk.org, Wei Dai Cc: Piotr Skajewski , vladimir.medvedkin@intel.com, bruce.richardson@intel.com, stable@dpdk.org, Tyl@dpdk.org, RadoslawX , Mrozowicz@dpdk.org, SlawomirX , Michael@dpdk.org, Alice Subject: [PATCH v1 02/22] net/ixgbe/base: fix wrong 5G link speed reported on VF Date: Wed, 24 Apr 2024 14:21:36 +0100 Message-ID: <0331a520ca7dc7f2a384e56d7ae66f27ba9ba731.1713964708.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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Piotr Skajewski When 5000 Base-T was set on PF the VF reported 100 Base-T. This patch change ixgbe_check_mac_link_vf function where was incorrect conditional which points to PF mac types, now it is pointing correctly to VF mac types. Fixes: 12e20906905c ("net/ixgbe/base: include new speeds in VFLINK interpretation") Cc: stable@dpdk.org Signed-off-by: Piotr Skajewski Reviewed-by: Tyl, RadoslawX Reviewed-by: Mrozowicz, SlawomirX Reviewed-by: Michael, Alice --- drivers/net/ixgbe/base/ixgbe_vf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/base/ixgbe_vf.c b/drivers/net/ixgbe/base/ixgbe_vf.c index 5e3ae1b519..11dbbe2a86 100644 --- a/drivers/net/ixgbe/base/ixgbe_vf.c +++ b/drivers/net/ixgbe/base/ixgbe_vf.c @@ -585,7 +585,7 @@ s32 ixgbe_check_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed *speed, switch (links_reg & IXGBE_LINKS_SPEED_82599) { case IXGBE_LINKS_SPEED_10G_82599: *speed = IXGBE_LINK_SPEED_10GB_FULL; - if (hw->mac.type >= ixgbe_mac_X550) { + if (hw->mac.type >= ixgbe_mac_X550_vf) { if (links_reg & IXGBE_LINKS_SPEED_NON_STD) *speed = IXGBE_LINK_SPEED_2_5GB_FULL; } @@ -595,7 +595,7 @@ 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) { + if (hw->mac.type == ixgbe_mac_X550_vf) { if (links_reg & IXGBE_LINKS_SPEED_NON_STD) *speed = IXGBE_LINK_SPEED_5GB_FULL; } @@ -603,7 +603,7 @@ s32 ixgbe_check_mac_link_vf(struct ixgbe_hw *hw, ixgbe_link_speed *speed, case IXGBE_LINKS_SPEED_10_X550EM_A: *speed = IXGBE_LINK_SPEED_UNKNOWN; /* Since Reserved in older MAC's */ - if (hw->mac.type >= ixgbe_mac_X550) + if (hw->mac.type >= ixgbe_mac_X550_vf) *speed = IXGBE_LINK_SPEED_10_FULL; break; default: -- 2.43.0