linux/drivers/net/ethernet/netronome/nfp
Jakub Kicinski 651e1f2f19 nfp: set driver VF limit
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>
2017-05-30 11:27:04 -04:00
..
nfpcore nfp: calculate total port lanes for split 2017-05-26 11:01:49 -04:00
Makefile nfp: add devlink support 2017-05-26 11:01:48 -04:00
nfp_app.c nfp: introduce very minimal nfp_app 2017-05-22 14:59:04 -04:00
nfp_app.h nfp: introduce very minimal nfp_app 2017-05-22 14:59:04 -04:00
nfp_asm.h nfp: add BPF to NFP code translator 2016-09-21 19:50:02 -04:00
nfp_bpf_jit.c nfp: replace -ENOTSUPP with -EOPNOTSUPP 2017-04-30 22:37:00 -04:00
nfp_bpf_verifier.c nfp: add support for offload of XDP programs 2016-11-04 14:56:16 -04:00
nfp_bpf.h bitfield.h: add FIELD_FIT() helper 2017-02-10 15:52:24 -05:00
nfp_devlink.c nfp: support port splitting via devlink 2017-05-26 11:01:49 -04:00
nfp_main.c nfp: set driver VF limit 2017-05-30 11:27:04 -04:00
nfp_main.h nfp: add devlink support 2017-05-26 11:01:48 -04:00
nfp_net_common.c nfp: add set_mac_address support while the interface is up 2017-05-30 11:27:03 -04:00
nfp_net_ctrl.h nfp: add set_mac_address support while the interface is up 2017-05-30 11:27:03 -04:00
nfp_net_debugfs.c nfp: rename netdev/port to vNIC 2017-05-22 14:59:03 -04:00
nfp_net_ethtool.c nfp: refresh port state before reporting autonegotiation 2017-05-22 14:59:06 -04:00
nfp_net_main.c nfp: support port splitting via devlink 2017-05-26 11:01:49 -04:00
nfp_net_offload.c nfp: replace -ENOTSUPP with -EOPNOTSUPP 2017-04-30 22:37:00 -04:00
nfp_net.h nfp: move refresh tracking into the port structure 2017-05-22 14:59:05 -04:00
nfp_netvf_main.c nfp: rename netdev/port to vNIC 2017-05-22 14:59:03 -04:00
nfp_port.c nfp: support port splitting via devlink 2017-05-26 11:01:49 -04:00
nfp_port.h nfp: support port splitting via devlink 2017-05-26 11:01:49 -04:00