nfp: devlink add support for getting eswitch mode
commit9daee04ae17fb886008ba222fe8150fcc1d0d8cb
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 23 Jun 2017 20:11:59 +0000 (23 22:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jun 2017 15:42:01 +0000 (25 11:42 -0400)
treebc775f1810ae72efbe4137b3921433af8dc7a08f
parent3fcece12bc1b6dcdf0986f2cd9e8f63b1f9b6aa0
nfp: devlink add support for getting eswitch mode

Add app callback for reporting eswitch mode.  Non-SRIOV apps
should not implement this callback, nfp_app code will then
respond with -EOPNOTSUPP.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Simon Horman <simon.horman@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_devlink.c