Skip to content

Commit

Permalink
be2net: Rework PCIe error report log messaging
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ajit Khaparde authored and David S. Miller committed Oct 19, 2013
1 parent c1b1203 commit ea58c18
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ea58c18

Please sign in to comment.