]> git.karo-electronics.de Git - linux-beck.git/commitdiff
be2net: enable PCIe error reporting on VFs too
authorKalesh AP <kalesh.purayil@emulex.com>
Fri, 12 Sep 2014 12:09:21 +0000 (17:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Sep 2014 21:12:15 +0000 (17:12 -0400)
Currently PCIe error reporting is enabled only on PFs. This patch enables
this feature on VFs too as Lancer VFs support it.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index a6cf6c75971e61c72c542fc9b2315fdaf34af4b6..beebab60b6c45e826c1112132e551c5bca3d427c 100644 (file)
@@ -4877,11 +4877,9 @@ static int be_probe(struct pci_dev *pdev, const struct pci_device_id *pdev_id)
                }
        }
 
-       if (be_physfn(adapter)) {
-               status = pci_enable_pcie_error_reporting(pdev);
-               if (!status)
-                       dev_info(&pdev->dev, "PCIe error reporting enabled\n");
-       }
+       status = pci_enable_pcie_error_reporting(pdev);
+       if (!status)
+               dev_info(&pdev->dev, "PCIe error reporting enabled\n");
 
        status = be_ctrl_init(adapter);
        if (status)