From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 619A1292D for ; Sun, 22 Apr 2018 17:12:23 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 91F692127A; Sun, 22 Apr 2018 11:12:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 22 Apr 2018 11:12:22 -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=13PQ/rvF/FhX5ae8b 1raUD4DI7syqWcw93xjcldRh5I=; b=c0oqrIzF9KBTaZnLuIIwhWpsX0vUX1fhK oljALcuiJ1B//BRPiFzAD19k8bOmckZRKNhHdzYkpsOlog/BENShXw/mPJzPW94k FS/Bm71d9f9SNa7nyuR8IPka9GtB2hctMRvTY6Zcs+uM6bo64oumq7FnU1bKr5E2 qE5+42KKC0b+o/bcLQgXGjt55gvHogFIVs2aulo5hFrkzP60wJEkzcUeFsJy8KLR 0m62pi5I/kX32cKJcry0DTjpBHBGyv0ycNDUCZh91Fg4P0YdqF84Slvkb7eqIMr3 IiaWYy2b+Km/SXyfv337CO7OnydwH0r3osmSR6hAcNoEszqdcciBQ== 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=13PQ/rvF/FhX5ae8b1raUD4DI7syqWcw93xjcldRh5I=; b=NrjwNWrm T4ZHycrfrdRLrjOt5Pi2Z9rhyj+x/2Kf2p6IUa1sSDnprnBvJTdKDiVCEk60ZeMk EAzJviJY58Pwgpho7IuMx/EEFH6nqWM838nEY9YY1cDIt6cY3vN9nqpnjsxOfnIj KHTPFipJdoUPysdCr0i2R/Cui+1AafCc+9E9HnumGIz3KQbnVS0sxOP7X6lqPaMA 1K6kGkqRXf1Gc6EyXITpG70GjNShII7mLAa7xghdIHrIB64IVwJvJU/KgfR9prHR mZZroR1MGiSsnWVMXBYzxTigfVKemFbhaMK9OTPP7SomFdB6BYBUXRxZH6dYfiHJ CQkNBRE1KvwrZg== X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.66]) by mail.messagingengine.com (Postfix) with ESMTPA id 7CD6D1025D; Sun, 22 Apr 2018 11:12:20 -0400 (EDT) From: Yuanhan Liu To: Chas Williams Cc: Helin Zhang , dpdk stable Date: Sun, 22 Apr 2018 23:09:43 +0800 Message-Id: <20180422150949.17523-53-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180422150949.17523-1-yliu@fridaylinux.org> References: <20180422150949.17523-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/ixgbe: fix busy wait during checking link status' has been queued to LTS release 17.11.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: Sun, 22 Apr 2018 15:12:23 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.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 04/29/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 709ce2c55bf4f7e6d2a904c3937f99bc2b12605b Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Thu, 1 Feb 2018 17:39:07 -0500 Subject: [PATCH] net/ixgbe: fix busy wait during checking link status [ upstream commit 22da9548cc1841350421e9b7efbb659c8e0b3d3b ] If we haven't set wait_to_complete, there is no need to busy wait until we have a link status. Applications, like bonding, use the wait_to_complete flag to indicate that they will be doing their own busy wait and will likely be polling again shortly. Fixes: dc66e5fd01b9 ("net/ixgbe: improve link state check on VF") Signed-off-by: Chas Williams Acked-by: Helin Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 830add2e2..249b6926e 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -3900,7 +3900,7 @@ ixgbevf_check_link(struct ixgbe_hw *hw, ixgbe_link_speed *speed, /* for SFP+ modules and DA cables on 82599 it can take up to 500usecs * before the link status is correct */ - if (mac->type == ixgbe_mac_82599_vf) { + if (mac->type == ixgbe_mac_82599_vf && wait_to_complete) { int i; for (i = 0; i < 5; i++) { -- 2.11.0