|
@@ -1609,7 +1609,7 @@ ixgb_update_stats(struct ixgb_adapter *adapter)
|
|
struct pci_dev *pdev = adapter->pdev;
|
|
struct pci_dev *pdev = adapter->pdev;
|
|
|
|
|
|
/* Prevent stats update while adapter is being reset */
|
|
/* Prevent stats update while adapter is being reset */
|
|
- if (pdev->error_state && pdev->error_state != pci_channel_io_normal)
|
|
|
|
|
|
+ if (pci_channel_offline(pdev))
|
|
return;
|
|
return;
|
|
|
|
|
|
if((netdev->flags & IFF_PROMISC) || (netdev->flags & IFF_ALLMULTI) ||
|
|
if((netdev->flags & IFF_PROMISC) || (netdev->flags & IFF_ALLMULTI) ||
|