nfp: introduce nfp_port
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 22 May 2017 17:59:28 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 18:59:04 +0000 (14:59 -0400)
commiteb488c26d713b2a9ebba6c12bbefd04e01197693
treebc4562458f046d11a1ea2e2b49de574c259c359b
parentd88b0a233fafa4abda3b3aa5a69d46574e4c793e
nfp: introduce nfp_port

Encapsulate port information into struct nfp_port.  nfp_port will
soon be extended to contain devlink_port information.  It also makes
it easier to reuse port-related code between vNICs and representors.

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/Makefile
drivers/net/ethernet/netronome/nfp/nfp_net.h
drivers/net/ethernet/netronome/nfp/nfp_net_common.c
drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c
drivers/net/ethernet/netronome/nfp/nfp_net_main.c
drivers/net/ethernet/netronome/nfp/nfp_port.c [new file with mode: 0644]
drivers/net/ethernet/netronome/nfp/nfp_port.h [new file with mode: 0644]