🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Simon Horman Mon, 30 Nov 2026 19:52
Re: [PATCH net-next V2 3/5] net/mlx5: E-switch, drop master egress rule under a SW vport LAG
#24773
Author: Simon Horman
Date: Mon, 30 Nov 2026 19:52
38 lines
9841 bytes
On Fri, Nov 20, 2026 at 09:59:56AM +0200, Tariq Toukan wrote:
> From: Shay Drory <shayd@nvidia.com>
> 
> VPORT_LAG steers all traffic of a LAG slave to the LAG master. The
> eswitch master egress rule does the opposite direction: it bounces
> traffic that reached the master's manager vport into the slave eswitch.
> With a FW vport LAG the FW steers that bounced packet to the LAG master,
> so the two coexist.
> 
> The software vport LAG emulation cannot. It is a catch-all rule in the
> slave eswitch's egress ACL that forwards to the master's manager vport,
> while the master egress rule redirects the packet after the FDB - past
> the point where the slave egress rule is evaluated - so the bounced
> packet never reaches it.
> 
> The two therefore cannot coexist: drop the master egress rule when the
> software vport LAG is installed, and restore it when it is removed. Both
> rules are keyed by the peer vhca_id, so each slave swaps its own pair
> independently. Restoring needs the ACL size, so pass ldev->max_fns down
> to mlx5_eswitch_offloads_vport_lag_del_one(), as the single FDB path
> already does.
> 
> Also, release the MPESW metadata after the shared FDB is destroyed,
> mirroring the creation order. Releasing it first makes all slaves fall
> back to the same default uplink metadata, so the restored master egress
> rules collide.
> 
> Note that vport LAG on its own only gets traffic to the LAG master; the
> distribution to the other slaves esw managers, which was managed by
> master egress rules, is done by the LAG demux.
> 
> Signed-off-by: Shay Drory <shayd@nvidia.com>
> Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
> Reviewed-by: Mark Bloch <mbloch@nvidia.com>
> Signed-off-by: Tariq Toukan <tariqt@nvidia.com>

Reviewed-by: Simon Horman <horms@kernel.org>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads