nfp: don't fail probe on pci_sriov_set_totalvfs() errors
authorJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 26 Jul 2018 02:40:34 +0000 (19:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 05:17:44 +0000 (22:17 -0700)
commit5b0ced17edc5710d4e946392d0f2934a9e07b37f
tree609a86af450ee481bce51af046f1ce9c77d35345
parentb24dbfe9ce03d9f83306616f22fb0e04e8960abe
nfp: don't fail probe on pci_sriov_set_totalvfs() errors

On machines with buggy ACPI tables or when SR-IOV is already enabled
we may not be able to set the SR-IOV VF limit in sysfs, it's not fatal
because the limit is imposed by the driver anyway.  Only the sysfs
'sriov_totalvfs' attribute will be too high.  Print an error to inform
user about the failure but allow probe to continue.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_main.c