nfp: flower: add per repr private data for LAG offload
authorJohn Hurley <john.hurley@netronome.com>
Thu, 24 May 2018 02:22:51 +0000 (19:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 May 2018 03:10:56 +0000 (23:10 -0400)
commitb945245297416a3c68ed12f2ada1c7162f5f73fd
tree8de7c894cd9d9fead0c311def7cf2f0a3d9948d7
parent898bc7d634b4ffbdc3511212625c735d400a8cc6
nfp: flower: add per repr private data for LAG offload

Add a bitmap to each flower repr to track its state if it is enslaved by a
bond. This LAG state may be different to the port state - for example, the
port may be up but LAG state may be down due to the selection in an
active/backup bond.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Pieter Jansen van Vuuren <pieter.jansenvanvuuren@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/netronome/nfp/flower/main.c
drivers/net/ethernet/netronome/nfp/flower/main.h