linux/drivers/net/ethernet/netronome/nfp
Jakub Kicinski d88b0a233f nfp: disallow mixing vNICs with and without NSP port entry
We only support core NIC apps which have vNICs for each physical port/
split and no representors right now.  Enforce that either each vNIC has
a NSP eth_table entry or if NSP port table is not available none do.

One scenario this will prevent from happening is user force-loading
wrong firmware file if FW app requires different firmwares per media
config.

While at it move some code to nfp_net_pf_alloc_vnic() to make it
counter-match nfp_net_pf_free_vnic() better.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-05-22 14:59:04 -04:00
..
nfpcore nfp: add nfp_cppcore_pcie_unit() helper 2017-05-22 14:59:02 -04:00
Makefile nfp: introduce very minimal nfp_app 2017-05-22 14:59:04 -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_main.c nfp: rename netdev/port to vNIC 2017-05-22 14:59:03 -04:00
nfp_main.h nfp: introduce very minimal nfp_app 2017-05-22 14:59:04 -04:00
nfp_net_common.c nfp: make nfp_net alloc/init/cleanup/free not depend on netdevs 2017-05-22 14:59:03 -04:00
nfp_net_ctrl.h nfp: add CHECKSUM_COMPLETE support 2017-05-16 12:59: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: introduce very minimal nfp_app 2017-05-22 14:59:04 -04:00
nfp_net_main.c nfp: disallow mixing vNICs with and without NSP port entry 2017-05-22 14:59:04 -04:00
nfp_net_offload.c nfp: replace -ENOTSUPP with -EOPNOTSUPP 2017-04-30 22:37:00 -04:00
nfp_net.h nfp: introduce very minimal nfp_app 2017-05-22 14:59:04 -04:00
nfp_netvf_main.c nfp: rename netdev/port to vNIC 2017-05-22 14:59:03 -04:00