From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 5BE151B7D6 for ; Tue, 15 May 2018 15:49:20 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id m129-v6so1245883wmb.3 for ; Tue, 15 May 2018 06:49:20 -0700 (PDT) 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; bh=+IsGwOkedVVONxJU2VIt3hLMkaDtNutneMiuuNpXpS0=; b=Og2Hh4zDHA/1ENGdp2IZy+Uk2qbmLFoJNfgDtsZe7RHtuRMMoTUzsn/LJnPREhfjZl G3/iHeRoDBhMudCgJomvEAVa+dLvqiN5mTeH/ko1E2cGHU0lQb04fzz7GaqlDN8hcuz9 9L3Kby/5XuJSWgfFkUkWfbI9HOnSFztggNziYSYsj4mKV1fpJ/qmj1V4H6gkllgQW9Fe My4KwwyzlwF5F80NQSXc3xEIDjosOPTx352ScdXHzl4GueajXlzhjOKjbDF3dZnoWhW0 2iCeja7MkomipuR1HfRajml0VhCnwP5vDOHqaU2E9eO7L2ElZZNh0dJhLAzsKs/VPj47 Uzzg== 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; bh=+IsGwOkedVVONxJU2VIt3hLMkaDtNutneMiuuNpXpS0=; b=VTYOU9INjaUT1ge3rHs9XSzODECH+yEDPlz9St4+7t2Eue98+7Z9rZ4lPD6EKwrNR7 r+tmoJ5DH4+fglWaohEuVmQ4gZuas4OoAALdsaSPBZcsSIDAnt+yqjhpNL0de5W1T9nk aSJ6t5BWkUjaZ+iwBqLvVBNWQBh8D9O+W+kSSg9/0l/IcxKoBGnMyXtIYcgejNFri4ia QDnWUfn84/CwFQow7quncTnjBUasMkrP36oRGnnTMRNqH397wJ6nASOLy3H/+S8vH04B XmJUAYQLqPpneqccrgAinC402RGJtNSfRqrEbirDDFr7VxLE5FQB0TlrmsFrPcjqutIY hp/g== X-Gm-Message-State: ALKqPwcmkLMwWP1FAe+g7Lrf78cN7wBu/NkocLA1uQdauwPXO7XDtZtT HKbQxhkwcRdNfR9JLexMk77uY3ZNyi0= X-Google-Smtp-Source: AB8JxZqaO8kcdFUg+ZEey9MdFvhSxsVSGSDJ5QGDZrQ7ctGB/qAcJf/0yq6nmoTxydAH3CSU0cyWGg== X-Received: by 2002:a1c:3653:: with SMTP id d80-v6mr8610226wma.3.1526392160105; Tue, 15 May 2018 06:49:20 -0700 (PDT) Received: from localhost (slip139-92-244-193.lon.uk.prserv.net. [139.92.244.193]) by smtp.gmail.com with ESMTPSA id q194-v6sm741528wmd.26.2018.05.15.06.49.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 06:49:19 -0700 (PDT) From: luca.boccassi@gmail.com To: Beilei Xing Cc: Keith Wiles , dpdk stable Date: Tue, 15 May 2018 14:47:10 +0100 Message-Id: <20180515134731.9337-59-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180515134731.9337-1-luca.boccassi@gmail.com> References: <20180503110612.12146-2-luca.boccassi@gmail.com> <20180515134731.9337-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/i40e: fix link status update' has been queued to stable release 18.02.2 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: Tue, 15 May 2018 13:49:20 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 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/16/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 84c37440e25629dcd52f9c3bfb7e63943d4724b1 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 2322d6043..c1550ff07 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2471,7 +2471,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 */ @@ -2528,7 +2528,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.14.2