|
@@ -4747,14 +4747,14 @@ static pci_ers_result_t ixgbevf_io_error_detected(struct pci_dev *pdev,
|
|
rtnl_lock();
|
|
rtnl_lock();
|
|
netif_device_detach(netdev);
|
|
netif_device_detach(netdev);
|
|
|
|
|
|
|
|
+ if (netif_running(netdev))
|
|
|
|
+ ixgbevf_close_suspend(adapter);
|
|
|
|
+
|
|
if (state == pci_channel_io_perm_failure) {
|
|
if (state == pci_channel_io_perm_failure) {
|
|
rtnl_unlock();
|
|
rtnl_unlock();
|
|
return PCI_ERS_RESULT_DISCONNECT;
|
|
return PCI_ERS_RESULT_DISCONNECT;
|
|
}
|
|
}
|
|
|
|
|
|
- if (netif_running(netdev))
|
|
|
|
- ixgbevf_close_suspend(adapter);
|
|
|
|
-
|
|
|
|
if (!test_and_set_bit(__IXGBEVF_DISABLED, &adapter->state))
|
|
if (!test_and_set_bit(__IXGBEVF_DISABLED, &adapter->state))
|
|
pci_disable_device(pdev);
|
|
pci_disable_device(pdev);
|
|
rtnl_unlock();
|
|
rtnl_unlock();
|