]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_span: Add per-ASIC SPAN agent operations
authorIdo Schimmel <idosch@mellanox.com>
Tue, 14 Jul 2020 14:20:56 +0000 (17:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2020 21:50:49 +0000 (14:50 -0700)
commit391ac0e437f503dddd0404c53d946f0331506394
tree685431ac0027fbe3f11bfd0a5051eb53f7438948
parent1f12cd6174b0f9f6d6a8b5394309ccab442d2b55
mlxsw: spectrum_span: Add per-ASIC SPAN agent operations

The various SPAN agent types differ in their mirror targets (i.e.,
physical port netdev vs. VLAN netdev) and the encapsulation headers that
they need to encapsulate the mirrored packets with.

The Spectrum-2 and Spectrum-3 ASICs support a SPAN agent type that is
able to mirror towards the CPU, whereas the Spectrum-1 ASIC does not.

Prepare for the addition of this new SPAN agent type by splitting the
SPAN agent operations to be per-ASIC.

Reviewed-by: Jiri Pirko <jiri@mellanox.com>
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