]> git.baikalelectronics.ru Git - kernel.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)
commit3e26ed7b2b69085cc19e5f52a874fa8f5977f8c3
tree258e718e12d0feabe709ac0eb7271dc184beb0ae
parent43b0d5be160ea6ce41965a5dfa7516852bd67c03
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