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 E03D14410E for ; Thu, 30 May 2024 13:14:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A42840ED3; Thu, 30 May 2024 13:14:26 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id E3B7540DF5; Thu, 30 May 2024 13:14:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717067663; x=1748603663; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3+1q1rJsnAnHbPex4c0izxH0zCks4iPMXqmPPj95sEI=; b=Dv73z28gnpbiTAsq8RPEhARFRFrLWpS+6KHnItSBDvxaOVtqFQL3FMZH ZINkiCEDO23UE696Qn0SAL+KRxr1UUuHTV/3TGrSxn7gDo/6EkGQ9FLn2 OuEIEDcx0MrkmaZuYU6gxGgagBuJL1e5SeyBIpT8ua15j6N+ZnMl7u4a3 7Iy5w/9VJ813dUwU5i3amCH9DDRGupn4cJekX9x+81UCN5c+lAuUC5b4H Zrhh8Qflqy4TUx12iCoiMIGtexaObEeJJyuxuqif8+ymSchYbURXpPCN7 rNxGBFhhHZn9FELlyr9fTH5O45+VqPXT/u3yMhcPu/1kb9vTHYsB8YTVI w==; X-CSE-ConnectionGUID: C+1Z3QhZSiyWIZEiHidG6w== X-CSE-MsgGUID: FmHaw7bjSju3OiQlh8ppjQ== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="36063527" X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="36063527" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 04:14:22 -0700 X-CSE-ConnectionGUID: Ct2VbkJqRwCUcHXcRoKKPA== X-CSE-MsgGUID: dRhOuziRTJuhzivM1UULnA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="36419290" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa007.jf.intel.com with ESMTP; 30 May 2024 04:14:19 -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 v3 02/30] net/ixgbe/base: fix wrong 5G link speed reported on VF Date: Thu, 30 May 2024 12:13:35 +0100 Message-ID: <0516957d71892d206ac5a4ca0f8ad3f39a4a38d2.1717067519.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