]> 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)
commit4f4911f68d022c1faa2fab5bbc3a1c6aa4496980
tree685431ac0027fbe3f11bfd0a5051eb53f7438948
parent04bb91a940d5726175c39b3180d13bd51f877abe
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