net/ixgbe: fix reset error handling
Add error handling for resetting HW.
Fixes: 0a45657a67
("pci: rework interrupt handling")
Cc: stable@dpdk.org
Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Acked-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
This commit is contained in:
parent
aa736145b5
commit
f69166c9a3
@ -5002,7 +5002,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. */
|
||||
|
Loading…
Reference in New Issue
Block a user