]> git.karo-electronics.de Git - linux-beck.git/commitdiff
be2net: Rework PCIe error report log messaging
authorAjit Khaparde <ajit.khaparde@emulex.com>
Fri, 18 Oct 2013 21:06:24 +0000 (16:06 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Oct 2013 23:13:28 +0000 (19:13 -0400)
Currently we log a message whenever pcie_enable_error_reporting fails.
The message clutters up logs, especially when we don't support it for VFs.
Instead enable this only for PFs and log a message when the call succeeds.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c

index 2d6115c0e99b31472accb37d3722945db424fdb6..f0866e2cdd8d0b8fbb37e4509e3ad635af7b92b7 100644 (file)
@@ -4459,9 +4459,11 @@ static int be_probe(struct pci_dev *pdev, const struct pci_device_id *pdev_id)
                }
        }
 
-       status = pci_enable_pcie_error_reporting(pdev);
-       if (status)
-               dev_info(&pdev->dev, "Could not use PCIe error reporting\n");
+       if (be_physfn(adapter)) {
+               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)