nfp: provide linking on port structures
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 22 May 2017 17:59:31 +0000 (10:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 May 2017 18:59:05 +0000 (14:59 -0400)
commit3eb3b74adb701d575d718df1bbffefa2543a302d
treece507ebea7f9340c3dff0a9c18eea2fa421d7ade
parent6d4f8cba5fbbc83e74ee8a49e5234e446306bac6
nfp: provide linking on port structures

Add link to nfp_ports to make it possible to iterate over all ports.
This will come in handy when some ports may be 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/nfp_main.c
drivers/net/ethernet/netronome/nfp/nfp_main.h
drivers/net/ethernet/netronome/nfp/nfp_net_main.c
drivers/net/ethernet/netronome/nfp/nfp_port.c
drivers/net/ethernet/netronome/nfp/nfp_port.h