From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 72C15A0542 for ; Fri, 7 Feb 2020 16:13:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 69FB41C11E; Fri, 7 Feb 2020 16:13:44 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 9F2C01C137 for ; Fri, 7 Feb 2020 16:13:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581088422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TlFcCJ6wQXB+WaVEcEMpJ+EwubibiiJzRhO/KQh41OY=; b=C+mcGrWNayYoDineu93yPkiMhIy5xVN0dC3yTbN36o578RYKLo4uzfXhwBY2EirLkiR2jA qvlICZXBalNuF/SvAB8xXBkqXDGXrk8wGmBOMs/A4rsDYL1eXivTki3qXunFXJqQi3HJLA YOHoLaR0Qks4jQp5miPjE2OSOUT06us= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-234-I1E7bwIyNcSJ4LJm8RDVaw-1; Fri, 07 Feb 2020 10:13:39 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 24B8118AB2C3; Fri, 7 Feb 2020 15:13:38 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.76]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B7B810016DA; Fri, 7 Feb 2020 15:13:36 +0000 (UTC) From: Kevin Traynor To: Lunyuan Cui Cc: Xiaolong Ye , dpdk stable Date: Fri, 7 Feb 2020 15:12:29 +0000 Message-Id: <20200207151248.29804-17-ktraynor@redhat.com> In-Reply-To: <20200207151248.29804-1-ktraynor@redhat.com> References: <20200207151248.29804-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: I1E7bwIyNcSJ4LJm8RDVaw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] patch 'net/ixgbe: fix link status' has been queued to LTS release 18.11.7 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "stable" Hi, FYI, your patch has been queued to LTS release 18.11.7 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/13/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable-queue This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable-queue/commit/03b69d3c415f084b14= 833ed911ac9aa2e470b409 Thanks. Kevin. --- >From 03b69d3c415f084b14833ed911ac9aa2e470b409 Mon Sep 17 00:00:00 2001 From: Lunyuan Cui Date: Tue, 17 Dec 2019 06:12:03 +0000 Subject: [PATCH] net/ixgbe: fix link status [ upstream commit ff8162cb9571528c006f265a32730a463fd0b886 ] The link status for ixgbevf is not correct when PF link up. IXGBE_ESDP register is only used when media type is fiber. Fixes: 1ca05831b9be ("net/ixgbe: fix link status") Signed-off-by: Lunyuan Cui Acked-by: Xiaolong Ye --- drivers/net/ixgbe/ixgbe_ethdev.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_eth= dev.c index 25460b0724..2092051940 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -4120,7 +4120,9 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev, =09} =20 -=09esdp_reg =3D IXGBE_READ_REG(hw, IXGBE_ESDP); -=09if ((esdp_reg & IXGBE_ESDP_SDP3)) -=09=09link_up =3D 0; +=09if (ixgbe_get_media_type(hw) =3D=3D ixgbe_media_type_fiber) { +=09=09esdp_reg =3D IXGBE_READ_REG(hw, IXGBE_ESDP); +=09=09if ((esdp_reg & IXGBE_ESDP_SDP3)) +=09=09=09link_up =3D 0; +=09} =20 =09if (link_up =3D=3D 0) { --=20 2.21.1 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- -=092020-02-07 15:08:18.403179994 +0000 +++ 0017-net-ixgbe-fix-link-status.patch=092020-02-07 15:08:17.515062936 +0= 000 @@ -1 +1 @@ -From ff8162cb9571528c006f265a32730a463fd0b886 Mon Sep 17 00:00:00 2001 +From 03b69d3c415f084b14833ed911ac9aa2e470b409 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit ff8162cb9571528c006f265a32730a463fd0b886 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 2c6fd0f131..a3f550c534 100644 +index 25460b0724..2092051940 100644 @@ -22 +23 @@ -@@ -4156,7 +4156,9 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev, +@@ -4120,7 +4120,9 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev,