]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit583201e9b0f6d710dbf0851254923deeb57abc51
tree31d835c1fde222ddf3110af05f44a5961c105c93
parent9201515bf6c0319e9b6df1528ee60112d3f9dd9d
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