]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/vxge/vxge-main.c
vxge: return PCI_ERS_RESULT_DISCONNECT on permanent failure
[net-next-2.6.git] / drivers / net / vxge / vxge-main.c
index 7b5402b50d0aecf23c38002cdab3d3b5fb5e82ec..335140d2834a5a4351e7d8bab85d9bc3484dd265 100644 (file)
@@ -3956,6 +3956,9 @@ static pci_ers_result_t vxge_io_error_detected(struct pci_dev *pdev,
 
        netif_device_detach(netdev);
 
+       if (state == pci_channel_io_perm_failure)
+               return PCI_ERS_RESULT_DISCONNECT;
+
        if (netif_running(netdev)) {
                /* Bring down the card, while avoiding PCI I/O */
                do_vxge_close(netdev, 0);