nfp: calculate total port lanes for split
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 26 May 2017 08:03:35 +0000 (01:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 15:01:49 +0000 (11:01 -0400)
commitf0b81195381f0fd9ec84009a0e5a4bb12ccc9637
treee81bba8457b7003540512d00ad847e5e1cbac82c
parent53e7a08f0da16eb67daf616405b0579e98565cdc
nfp: calculate total port lanes for split

For port splitting we will need to know the total number of lanes
in a port.  Calculate that based on eth_table information.

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/nfpcore/nfp_nsp.h
drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp_eth.c