forked from Minki/linux
651e1f2f19
PCI subsystem has support for drivers limiting the number of VFs available below what the IOV capability claims. Make use of it. While at it remove the #ifdef/#endif on CONFIG_PCI_IOV, it was there to avoid unnecessary warnings in case device read failed but kernel doesn't have SR-IOV support anyway. Device reads should not fail. Note that we still need the driver-internal check for the case where max VFs is 0 since PCI subsystem treats 0 as limit not set. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
nfpcore | ||
Makefile | ||
nfp_app.c | ||
nfp_app.h | ||
nfp_asm.h | ||
nfp_bpf_jit.c | ||
nfp_bpf_verifier.c | ||
nfp_bpf.h | ||
nfp_devlink.c | ||
nfp_main.c | ||
nfp_main.h | ||
nfp_net_common.c | ||
nfp_net_ctrl.h | ||
nfp_net_debugfs.c | ||
nfp_net_ethtool.c | ||
nfp_net_main.c | ||
nfp_net_offload.c | ||
nfp_net.h | ||
nfp_netvf_main.c | ||
nfp_port.c | ||
nfp_port.h |