diff options
author | Bert Kenward <bkenward@solarflare.com> | 2015-12-23 09:58:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-24 04:06:39 +0100 |
commit | 09a04204f041caff7717a001a16c376f73be731b (patch) | |
tree | 0120f4657c1121e982e996339c8a4ec6af38bdbc /drivers/net/ethernet/sfc/efx.c | |
parent | sfc: Downgrade EPERM messages from MCDI to debug (diff) | |
download | linux-09a04204f041caff7717a001a16c376f73be731b.tar.xz linux-09a04204f041caff7717a001a16c376f73be731b.zip |
sfc: Downgrade or remove some error messages
Depending on configuration the NIC may return errors for unprivileged
functions and/or VFs. Where these are expected and handled, reduce the
level of any output.
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 6f697438545d..0705ec869487 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -3174,14 +3174,15 @@ static int efx_pci_probe(struct pci_dev *pci_dev, rtnl_lock(); rc = efx_mtd_probe(efx); rtnl_unlock(); - if (rc) + if (rc && rc != -EPERM) netif_warn(efx, probe, efx->net_dev, "failed to create MTDs (%d)\n", rc); rc = pci_enable_pcie_error_reporting(pci_dev); if (rc && rc != -EINVAL) - netif_warn(efx, probe, efx->net_dev, - "pci_enable_pcie_error_reporting failed (%d)\n", rc); + netif_notice(efx, probe, efx->net_dev, + "PCIE error reporting unavailable (%d).\n", + rc); return 0; |