be2net: Rework PCIe error report log messaging

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>
This commit is contained in:
Ajit Khaparde 2013-10-18 16:06:24 -05:00 committed by David S. Miller
parent c1b1203d65
commit ea58c18062
1 changed files with 5 additions and 3 deletions

View File

@ -4459,9 +4459,11 @@ 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); status = pci_enable_pcie_error_reporting(pdev);
if (status) if (!status)
dev_info(&pdev->dev, "Could not use PCIe error reporting\n"); dev_info(&pdev->dev, "PCIe error reporting enabled\n");
}
status = be_ctrl_init(adapter); status = be_ctrl_init(adapter);
if (status) if (status)