nfp: add basic SR-IOV ndo functions
authorPablo Cascón <pablo.cascon@netronome.com>
Fri, 25 Aug 2017 04:31:49 +0000 (21:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 02:24:58 +0000 (19:24 -0700)
commit25528d90f541fa23cb7b862a7e9dc0b9c44d9adc
treebf1af52e40ed226d8cc62db2118bd90780ec4a99
parentbd9dfc54e39266ff67521c09d37e838077385b21
nfp: add basic SR-IOV ndo functions

Add basic ndo_set/get_vf to support SR-IOV.

VF to egress phy static mapping by now.

Use vfcfg ABI version 2 to write the info to the FW and collect
the return value from the mailbox.

Signed-off-by: Pablo Cascón <pablo.cascon@netronome.com>
Signed-off-by: Jimmy Kizito <jimmy.kizito@netronome.com>
Signed-off-by: Rami Tomer <rami.tomer@netronome.com>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/Makefile
drivers/net/ethernet/netronome/nfp/nfp_main.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h
drivers/net/ethernet/netronome/nfp/nfp_net_main.c
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.h [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nic/main.c