From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <yliu@fridaylinux.org>
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com
 [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id DBB884D3A
 for <stable@dpdk.org>; Thu,  1 Feb 2018 10:49:47 +0100 (CET)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 8A4A320B19;
 Thu,  1 Feb 2018 04:49:47 -0500 (EST)
Received: from frontend2 ([10.202.2.161])
 by compute1.internal (MEProxy); Thu, 01 Feb 2018 04:49:47 -0500
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=IhEFK/Qm+B4KlTro3
 kniZLbOqxjyvYtcBGFz+deBNYo=; b=maJj/xYRiIj9gBuFPiJvbhsyJVH6la81T
 gZeNB6nHOqCJ9DHsuv7HmExS76x+SzQNjlYJ8bzyEZN5ZIiF5HMmdvTvA31tUTk5
 DOR8TcGqqpaMKSln6wwxSGKbSPaeSJsQacA+gyiPRGXqMnHXCeFPN8lBi6JgGIM+
 +JOqTAwEYgCWRdn5l6grvJqgmhgu135l0V0dO3bjfIq8D6phyEH1iAKPcHGKOq+y
 8TxlrsrqCP6NZesZv6r/UNnaQWmXP2BZUuMH5Cl1AEvpCCmC51zhtrz2/IY1ptxm
 F1UKnx8yNHBvtlRiHRhjSQytBhoeBWHoBgZZzAyrAzetGdv/V4MpA==
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=
 fm1; bh=IhEFK/Qm+B4KlTro3kniZLbOqxjyvYtcBGFz+deBNYo=; b=WrUgtRdz
 dlbX1izrsYZ9Hd+SkeNQ7U71D7TXLQCnLO0KbIjrICuzC+GIeujjN4+NtcgDygyv
 pgzZ4D9qlqMiscpC5qTR7vBWCwQJT0gZU73zevYRByeALnTTPG2Yl/lPkZLRSTtV
 +ikXeoExTUWBv/jYBfpfBrmEQ3uUF/SDhSBJcl7+txO3Ew+d4z7u4bJHaK2vuzvQ
 AsP9ki5vpLaKWippXb29ARon4THfBc6tnVhmxXC9LoxXY53Ey38eatkAEV0JHXA8
 LsUSXotHDWmPoFbmG6aqIJhktnFQvCUhvxLjdp/F4PE7U0gHApBwuAnNwc98lN6/
 ENoVoHDE+JariQ==
X-ME-Sender: <xms:u-JyWkqauNARc6_GyzOSjgCkRB4nGwy4MNkbsH5kdHwseSc2S5hIRg>
Received: from yliu-mob.mtl.com (unknown [115.150.27.200])
 by mail.messagingengine.com (Postfix) with ESMTPA id 0BDFE24610;
 Thu,  1 Feb 2018 04:49:45 -0500 (EST)
From: Yuanhan Liu <yliu@fridaylinux.org>
To: Wei Zhao <wei.zhao1@intel.com>
Cc: Wenzhuo Lu <wenzhuo.lu@intel.com>,
	dpdk stable <stable@dpdk.org>
Date: Thu,  1 Feb 2018 17:47:56 +0800
Message-Id: <1517478479-12417-42-git-send-email-yliu@fridaylinux.org>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org>
References: <1517478479-12417-1-git-send-email-yliu@fridaylinux.org>
Subject: [dpdk-stable] patch 'net/ixgbe: fix reset error handling' has been
	queued to LTS release 17.11.1
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Feb 2018 09:49:48 -0000

Hi,

FYI, your patch has been queued to LTS release 17.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/03/18. So please
shout if anyone has objections.

Thanks.

	--yliu

---
>>From bf54e2d0ac9b89a1c835e70286fc2d38dbaa4b5e Mon Sep 17 00:00:00 2001
From: Wei Zhao <wei.zhao1@intel.com>
Date: Mon, 29 Jan 2018 16:07:26 +0800
Subject: [PATCH] net/ixgbe: fix reset error handling

[ upstream commit f69166c9a3c968d5162af586b68b43df5fca4e34 ]

Add error handling for resetting HW.

Fixes: 0a45657a6794 ("pci: rework interrupt handling")

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c
index 1f3a60b..f219866 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5027,7 +5027,11 @@ ixgbevf_dev_start(struct rte_eth_dev *dev)
 
 	PMD_INIT_FUNC_TRACE();
 
-	hw->mac.ops.reset_hw(hw);
+	err = hw->mac.ops.reset_hw(hw);
+	if (err) {
+		PMD_INIT_LOG(ERR, "Unable to reset vf hardware (%d)", err);
+		return err;
+	}
 	hw->mac.get_link_status = true;
 
 	/* negotiate mailbox API version to use with the PF. */
-- 
2.7.4