equal
deleted
inserted
replaced
3013 static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state) |
3013 static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state) |
3014 { |
3014 { |
3015 struct net_device *netdev = pci_get_drvdata(pdev); |
3015 struct net_device *netdev = pci_get_drvdata(pdev); |
3016 struct nic *nic = netdev_priv(netdev); |
3016 struct nic *nic = netdev_priv(netdev); |
3017 |
3017 |
3018 /* Similar to calling e100_down(), but avoids adapter I/O. */ |
3018 /* Similar to calling e100_down(), but avoids adapter I/O. */ |
3019 netdev->stop(netdev); |
3019 netdev->stop(netdev); |
3020 |
3020 |
3021 if (!nic->ecdev) { |
3021 if (!nic->ecdev) { |
3022 /* Detach; put netif into a state similar to hotplug unplug. */ |
3022 /* Detach; put netif into a state similar to hotplug unplug. */ |
3023 napi_enable(&nic->napi); |
3023 napi_enable(&nic->napi); |