nfp: make nfp_net alloc/init/cleanup/free not depend on netdevs
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 22 May 2017 17:59:23 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 18:59:03 +0000 (14:59 -0400)
commitbeba69ca755542c2581bbb64b2fa79b11047ed8f
tree98bee44d21c4ad9f5fadb07232ae2b2a3d3db0de
parentcd6f8db9aebeb7f234b38756ba8ee77230058846
nfp: make nfp_net alloc/init/cleanup/free not depend on netdevs

struct nfp_net represents a vNIC, we will be moving away from the
requirement for every vNIC to have a netdev associated with it.
Remove "netdev" from some function names and prefer passing
struct nfp_net pointer as argument instead of struct net_device *.

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