DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ixgbe: fix hardware reset issue in VF
@ 2018-01-29  8:07 Wei Zhao
  2018-01-30  2:25 ` Lu, Wenzhuo
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Zhao @ 2018-01-29  8:07 UTC (permalink / raw)
  To: dev; +Cc: wenzhuo.lu, Wei Zhao

There is no specific handling when there is error happened
of hardware reset process in VF device start process.

Fixes: 0a45657a6794a ("pci: rework interrupt handling")
Signed-off-by: Wei Zhao <wei.zhao1@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 4f4334d..585c77c 100644
--- a/drivers/net/ixgbe/ixgbe_ethdev.c
+++ b/drivers/net/ixgbe/ixgbe_ethdev.c
@@ -5001,7 +5001,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.9.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-30  6:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-29  8:07 [dpdk-dev] [PATCH] net/ixgbe: fix hardware reset issue in VF Wei Zhao
2018-01-30  2:25 ` Lu, Wenzhuo
2018-01-30  2:26   ` Zhao1, Wei
2018-01-30  6:03   ` Zhang, Helin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).