From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id A2B268D91 for ; Sun, 20 May 2018 15:09:19 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4462521D23; Sun, 20 May 2018 09:09:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 20 May 2018 09:09:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5CG0TEqr2dGkD/IFg NeQpJnSumymNs3V63pG18oENg0=; b=LUUwzywKW8h93wjAoNNzHGRI8mB9UT0qi 2hDREUjFSX/KCRFHtmOx2/64O2YucljVBpwgmMcGU0qY5lCw2rvG38GeHYkpU794 G0eY5rbr1OsCmTMQcaDlsRuciMBDE2SWBnBBbD6ahjnBNvUsSOFnH/K3hjSw087T 1Fyef2h+dMwZ+r0TLhivzAiiSnEQh+YCttxdui6H7rqHudFQH6u5WiEMK5HgSoY7 lyl5gUs2ynBaClhTouwyOTefVdOtMlRSRz08coFGnOX5Kzz2gwiTHHQhSgAutcWN tORmfw6Dr0SNCYzW7Ci5+9PyjabZxFpnOSvZwLemstuXrVceK9mTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=5CG0TEqr2dGkD/IFgNeQpJnSumymNs3V63pG18oENg0=; b=I7qbQpTO i39MmlHs2kGXoOzbQvJhYKZhYdlStHwLTbiVumwg0SMD80tMAyWe9fMG9fbkQm1I /rl8SXcefo3v+al685F7bmQ2v3RqJlE53OlQ6Zp3hYVDgtpqIlYoWqphxHMHd0L9 PsfVsNMG65iDuHuOuu+zumjEUiOhs2mIYoSCHkwTNNMiVi4D9WcxXkUhR8JEPGyl wqbR/FcfPUCzo9Y1Ht19zoUz6tR3pViIK4m4PbO+HKvvqAizcPmLnjGPyEu3AVEB d3rS+mRpo76CuOk4anPXr0khOLqPLkNui8lnFzZqw82GNXvszNAAFIJ2f0tbvyJW I3r/DHSLpCzulQ== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 8500110260; Sun, 20 May 2018 09:09:17 -0400 (EDT) From: Yuanhan Liu To: Beilei Xing Cc: Keith Wiles , dpdk stable Date: Sun, 20 May 2018 21:02:39 +0800 Message-Id: <20180520130246.16287-23-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180520130246.16287-1-yliu@fridaylinux.org> References: <20180520130246.16287-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/i40e: fix link status update' has been queued to LTS release 17.11.3 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: , X-List-Received-Date: Sun, 20 May 2018 13:09:20 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/27/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 4241100c2178cd0939a9be25f31675b173cc0ba2 Mon Sep 17 00:00:00 2001 From: Beilei Xing Date: Thu, 10 May 2018 10:26:29 +0800 Subject: [PATCH] net/i40e: fix link status update [ upstream commit b5f6272c242f12fa3403b0d7e9da18fb83da17d4 ] Link status is not updated correctly, link speed is 0 when link is up and link speed is not 0 when link is down. This patch fixes the issue. Fixes: eef2daf2e199 ("net/i40e: fix link update no wait") Signed-off-by: Keith Wiles Signed-off-by: Beilei Xing --- drivers/net/i40e/i40e_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index b57b60f5c..2dc8c356c 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2478,7 +2478,7 @@ update_link_no_wait(struct i40e_hw *hw, struct rte_eth_link *link) reg_val &= I40E_REG_LINK_UP; link->link_status = (reg_val == I40E_REG_LINK_UP) ? 1 : 0; - if (unlikely(link->link_status != 0)) + if (unlikely(link->link_status == 0)) return; /* Parse the link status */ @@ -2535,7 +2535,7 @@ update_link_wait(struct i40e_hw *hw, struct rte_eth_link *link, link->link_status = link_status.link_info & I40E_AQ_LINK_UP; if (unlikely(link->link_status != 0)) - return; + break; rte_delay_ms(CHECK_INTERVAL); } while (--rep_cnt); -- 2.11.0