nfp: add devlink support
authorSimon Horman <simon.horman@netronome.com>
Fri, 26 May 2017 08:03:32 +0000 (01:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 15:01:48 +0000 (11:01 -0400)
commit1851f93fd2ee3dc0f3a6813385010a5d7ec1aabd
treefae82747ec830276a28742b979ff91bc3a2088f1
parent346cfe8482bf491f6e3e88ea89bc0d6be2b02efd
nfp: add devlink support

Add initial devlink support.  This patch simply switches allocation
of per-adapter structure to devlink's priv and register devlink
with empty ops table.  See following patches for implementation
of particular ops.

We should now clear the app pointer on exit, this is how devlink
callbacks will know app is not initialized.

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_devlink.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfp_main.c
drivers/net/ethernet/netronome/nfp/nfp_main.h
drivers/net/ethernet/netronome/nfp/nfp_net_main.c