From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id 4514EE5D for ; Mon, 30 Apr 2018 16:43:26 +0200 (CEST) Received: by mail-wr0-f194.google.com with SMTP id o4-v6so8285883wrm.0 for ; Mon, 30 Apr 2018 07:43:26 -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=uqO9sFmkzeo13m2Od95eOKmqjh4HyKd3+hbkI9NkSAU=; b=MNeovWmQ/0F/y8hnEgj06ryTSRBQJAAgPiH19jd4C0Ry/PXULjw+Qiyz7B16IZ4AUz PUYoBewDClimQTeA1g9yN/vFISRBLPOhQ8wiHxiSLYgK4rVmgg+2LlTRKoUhisW3bxHv q/ucm3R+cupkc0rl2/BGevBfi6qliYV5xP7eRHMB1LL0/zOhfYVRbxGAKvQ1jFeWmSH6 AnZWcapdY16FRKWcczF5Y1j9suUFryYCMO+myOiPSbFElnZwga0wKkeboqgR2xOcHAo1 rt5vfHvriP3QnqVAeTafM2p4Wzg4r/zY4SoCiVeodLkcuxyOckHNR4fGYiS1OsUxbGko MLaQ== 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=uqO9sFmkzeo13m2Od95eOKmqjh4HyKd3+hbkI9NkSAU=; b=X4ZAEKbqTnZtEc8dyzcaz1rDVsUK0SzSyG/GWlBh2zJVqIuJan7Z2LTChcfUWeVs9m kef9Wgaud0LQjuEWJDZQpjDsKUJvwYxEwGSw156QF8vHJrlphJz5J11/OGIVhjDOh2ez 4KJ/gVuJufPwy/zipFadov8hPiGngOad8jxvoQ69xDz8TKFH8Fa97Zd8wTh5VjgoGZRn H2/4ft34VRpczmoz4m2CecYzFASJYcRknfUcUWKQhfr5YqQPbuv6ngr8C3UxwURM9dMu uKE0k05z8EJVOO6Bv+JvG1wvCTKPCdApWQWvGiRstwtjHD+lgX4JmCIbzOecyIei67ez cgAg== X-Gm-Message-State: ALQs6tCkRnO0IJmy4LOwOl0uF47W6MbiixEIkRLXONNzUahx6Cc8OAZv qPyEWUH1P/HoxRrpNdpOMSo= X-Google-Smtp-Source: AB8JxZqlZwkgnciEj7aA6OY8KPxFPm4VqxoNxWqxw8ef0jSBXFeQ+HPUSJjSkOz+w1WrWXSST+9Jpw== X-Received: by 2002:adf:83a2:: with SMTP id 31-v6mr8986492wre.19.1525099405986; Mon, 30 Apr 2018 07:43:25 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id v196sm6013752wmf.36.2018.04.30.07.43.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:43:25 -0700 (PDT) From: luca.boccassi@gmail.com To: Chas Williams Cc: Helin Zhang , dpdk stable Date: Mon, 30 Apr 2018 15:40:53 +0100 Message-Id: <20180430144223.18657-38-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'net/ixgbe: fix busy wait during checking link status' 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: Mon, 30 Apr 2018 14:43:26 -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/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 3baaa0d4dfba701192035a81503dad51b194db49 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 6c0168322..c28551322 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -3877,7 +3877,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.14.2