]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b4afd35da6072e5f44cc89c63fa6306d58a45d3
tree609a86af450ee481bce51af046f1ce9c77d35345
parent5fa3e0a0021da48c4c54be54ccc622908679262d
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