]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nfp: app callbacks for SRIOV
authorSimon Horman <simon.horman@netronome.com>
Fri, 23 Jun 2017 20:12:04 +0000 (22:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:42:01 +0000 (11:42 -0400)
commit758238f2e7a645630c3fead7577c3fa5a36c6ad7
tree258e718e12d0feabe709ac0eb7271dc184beb0ae
parenteadfa4c3be99eaf15670681e6ffa4d995b73594c
nfp: app callbacks for SRIOV

Add app-callbacks for app-specific initialisation of SRIOV.

Disabling SRIOV is brought forward in nfp_pci_remove()
so that nfp_app_sriov_disable is called while the app still exists.

This is intended to be used to implement representor netdevs for virtual
ports.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/nfp_app.h
drivers/net/ethernet/netronome/nfp/nfp_main.c