[PATCH net-next mlxsw v3 0/6] mlxsw: SPAN: Support routes pointing at bridges

Ido Schimmel idosch at mellanox.com
Thu Apr 26 01:12:48 AEST 2018


On Wed, Apr 25, 2018 at 04:06:39PM +0200, Petr Machata wrote:
> When mirroring to a gretap or ip6gretap netdevice, the route that
> directs the encapsulated packets can reference a bridge. In that case,
> in the software model, the packet is switched.
> 
> Thus when offloading mirroring like that, take into consideration FDB,
> STP, PVID configured at the bridge, and whether that VLAN ID should be
> tagged on egress.
> 
> Patch #1 introduces a suite of functions to query various bridge bits of
> configuration: FDB, VLAN groups, etc.
> 
> Patches #2 and #3 refactor some existing code and introduce a new
> accessor function.
> 
> With patches #4 and #5 mlxsw calls mlxsw_sp_span_respin() on switchdev
> events as well. There is no impact yet, because bridge as an underlay
> device is still not allowed.
> 
> That is implemented in patch #6, which uses the new interfaces to figure
> out on which one port the mirroring should be configured, and whether
> the mirrored packets should be VLAN-tagged and how.

Applied, thanks!


More information about the Linux-mlxsw mailing list