mlxsw: spectrum_span: Support LAG under mirror-to-gretap
authorPetr Machata <petrm@mellanox.com>
Mon, 14 May 2018 06:40:44 +0000 (09:40 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2018 20:41:43 +0000 (16:41 -0400)
commit55c0211dcb5d33955ed977de81373cef91de665b
tree7d58b8f0a1ca30722bac512985ac25ef469c31e7
parentbde4c563a93f643cee9854b0d354710e1ff69284
mlxsw: spectrum_span: Support LAG under mirror-to-gretap

When resolving a path that the packet will take after being encapsulated
in mirror-to-gretap scenarios, one of the devices en route could be a
LAG. In that case, mirror to first up slave that corresponds to a front
panel port.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c