On Fri, Nov 20, 2026 at 09:59:56AM +0200, Tariq Toukan wrote:
> From: Shay Drory <sha…@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 <sha…@nvidia.com> > Reviewed-by: Moshe Shemesh <mos…@nvidia.com> > Reviewed-by: Mark Bloch <mblo…@nvidia.com> > Signed-off-by: Tariq Toukan <tari…@nvidia.com>
Reviewed-by: Simon Horman <hor…@kernel.org>