mlxsw: spectrum_span: Support mirror-to-VLAN
authorPetr Machata <petrm@mellanox.com>
Thu, 10 May 2018 10:13:05 +0000 (13:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 21:50:52 +0000 (17:50 -0400)
commite00698d1d7957669002a39c039423921d8694033
tree31d835c1fde222ddf3110af05f44a5961c105c93
parent419476624c89905977aa945aea2f94f7d942caf5
mlxsw: spectrum_span: Support mirror-to-VLAN

Offload "tc action mirred mirror" to a device that is a vlan device on
top of a front-panel port device. The hardware encapsulates the mirrored
packets in a VLAN tag. That includes the case that the mirrored traffic
is already VLAN-tagged--in that case the monitor traffic will be
double-tagged, just like in the software path.

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