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 7B0FEA051C for ; Tue, 11 Feb 2020 12:24:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F2111BF9B; Tue, 11 Feb 2020 12:24:53 +0100 (CET) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id C1C081BFA1 for ; Tue, 11 Feb 2020 12:24:51 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id w15so11884615wru.4 for ; Tue, 11 Feb 2020 03:24:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2uD0/VnjHCVUZAFTf2QArNuqoOMQqjb9keNc4H6caTE=; b=oKfrpUu/AEAoBF1evK2kjx2dMyW78fIibhdliuCTqzdtw69phNPSzCfT9isp7/AbDW AK95eP49q/Y+e5syqbDK2Vl5QBVNvJDAO6w/Is6RsfvSxb0jpJ+OhT+7LwIRB2VxtHnH bRnsnHM7rySUlQZ6w6Th5Nbpas/tAjDT4QRFDZTqNCmg4/0vaqnIODDUwNVWqB3DV7QO 4COe1GWG4XET4R869r/cucEj8b02cVX7uhybbn56ChfPwNUC2Cr4Z2PNilDAip1gh6IA ZBKJLnc4ZFy60zP4xpRwziXiJOdSSpsL3VwJ30KjMd1j24UHtV/1hfUkIw4sL6M7wtD9 LCsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2uD0/VnjHCVUZAFTf2QArNuqoOMQqjb9keNc4H6caTE=; b=aXGx04/Dm/7IMTwLTs+fJrNPcFkauCleNvwUTnEVCvAT4JDyKeEcSqIAymIUUZcGX3 nI5gINQ0fvt7Cqd2LL+BU60soSctHAmyn2wFPJMv0TRS1Z0n3h0goQWr427e15oGfncp l3/ODDiWBgB2CHyDrV9ty0c8FE0WRkoLPc5IGLeb+N7iGp0mefZWcv3d+mnyZKNwmvdC qbT9HF0wPx6+1WdquHIgojWViVKGFM3HZMh4qI81Z20PAp581EwF2jZq532vE3kGZvV0 AJlUFiHqDQs2IvVsrqPtAyyqhWgPtw4FsBlJNMunIO8F2foXN7YRjt1uX5CrbBBSpcnI hGRQ== X-Gm-Message-State: APjAAAUvQ/j2R++bMm0U+SOJLODqWBRTX7yqN+dQ54Rew5k4KZl2muTj 2GCN2ceVIpDkIZURvJLqTJyLEs8hpmA= X-Google-Smtp-Source: APXvYqy8x2kpEsON78S6X6vVNqunSc5CIYhjlbsgoxPjfF+N4zuNbywgfgBB1PoGh6Y0m2mKV6R/Dg== X-Received: by 2002:a5d:5152:: with SMTP id u18mr7992839wrt.214.1581420291513; Tue, 11 Feb 2020 03:24:51 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id u4sm4904671wrt.37.2020.02.11.03.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 03:24:50 -0800 (PST) From: luca.boccassi@gmail.com To: Lunyuan Cui Cc: Xiaolong Ye , dpdk stable Date: Tue, 11 Feb 2020 11:19:41 +0000 Message-Id: <20200211112216.3929-35-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com> References: <20200211112216.3929-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/ixgbe: fix link status' has been queued to stable release 19.11.1 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 stable release 19.11.1 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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 631f00e9f143fe995e0359c3aa57ac70b8dae825 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_ethdev.c index 2c6fd0f131..a3f550c534 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -4155,9 +4155,11 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev, return rte_eth_linkstatus_set(dev, &link); } - esdp_reg = IXGBE_READ_REG(hw, IXGBE_ESDP); - if ((esdp_reg & IXGBE_ESDP_SDP3)) - link_up = 0; + if (ixgbe_get_media_type(hw) == ixgbe_media_type_fiber) { + esdp_reg = IXGBE_READ_REG(hw, IXGBE_ESDP); + if ((esdp_reg & IXGBE_ESDP_SDP3)) + link_up = 0; + } if (link_up == 0) { if (ixgbe_get_media_type(hw) == ixgbe_media_type_fiber) { -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-11 11:17:40.356151102 +0000 +++ 0035-net-ixgbe-fix-link-status.patch 2020-02-11 11:17:38.364000674 +0000 @@ -1,13 +1,14 @@ -From ff8162cb9571528c006f265a32730a463fd0b886 Mon Sep 17 00:00:00 2001 +From 631f00e9f143fe995e0359c3aa57ac70b8dae825 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") -Cc: stable@dpdk.org Signed-off-by: Lunyuan Cui Acked-by: Xiaolong Ye