From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796068368; b=JsApsmg1zAX8ZKsVzbqMBzTUkWCS9wsTGUh0/76D44ndqBsIy1zUD0nnBucGcca6/oCP cmBn5aUby5HTLP1Pt+h9ZIHr/UlX+a3IkLsxjpDg9w8dC/u0iDRpKlRyGBM2kC3NkPQj1 rlUebwhp5LS71mW30GhOK3+uL96UFlZjt4Jpi+K/eN4Vd0TKBOpPF0j+e2H6xgBew8nX0 HHdWH/80EBVZUNKTMl+fKMDl0AZSYJHQ2LE7lcqpzy0T6/k15oi6ektDTXvI0XBRTLJ+m MJziiHdiP37rftDSYeLopk27H034qKU5sRyLwToZrMUbPBVr0sANXfSDwzEuww1GKaQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796068368; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=PxnYKsxnw+shc0a0CUyOgtWTBGLe3WyFCDxp2tEzhOo=; b=aQZiQ+LQsBgBPwNrz5xbWbUfSdhBzPPrgcmKK8H7G/cngCVcW0fu7saPNiKhtVEwEhX+ 7nk3VwlFdsKlyvEPnIlaJqiVrqeJX+IeDtcOUWE1z4gtTdzRvgdVAYynXybOk5pMurFVQ imO3dAvA4f/Yabz6iz/Th2gnRGhCmwGgNzEyrVKn4RZsrwFV5QFbJP1wY0AZOXeV+EaEF KwMzkFMeZIP+TVpgwlr0f0SC0KVjh4ehPrrMLr/I2SsIdenCGGCXpp//a90J9P6JnA8AT AYecxD1vSq4EbYdvOgOSotHhT7CuZLMre3PtRuTmzjNfEJ/dhfZeX7v0f2kgLrT1kXw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M+jY+Wj9; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE732606A33B; Mon, 30 Nov 2026 19:52:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=M+jY+Wj9 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDB5B1F0089A; Mon, 30 Nov 2026 19:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796068367; bh=PxnYKsxnw+shc0a0CUyOgtWTBGLe3WyFCDxp2tEzhOo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=M+jY+Wj9mtMy3MfIPS/N+Ltk9XwMFxDrBubSoKWA2A5BMKwWPiSdh8Jr1kYthH7pG humNybiNJp9eR3yLMS13wTEaJbNBlnIG5E/xjf9luk+OWmDpAViw5WHWlINd7yKhf0 Szu0JUbsNLtLlkhM8CNt+kiFofftI6+moWTeZ4bbx+sypj9QaWivXAzu2yF826QUqZ /o5N+HLh9pelt2GJMzaEruf6focWsKjoHup8Uze2AHPTVe1NaKmm6ahgZfBMh5oQES gPqooP6Rlf4WvZtQwp/7ACOWl/M4Mc/1IlcHuk7pjSiPMV/WNRVgmAa75SCoG7vOLk lHk+LFpaJVMOw== Date: Mon, 30 Nov 2026 19:52:42 +0000 From: Simon Horman To: Tariq Toukan Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni , Akiva Goldberger , Gal Pressman , Jason Gunthorpe , Leon Romanovsky , linux-rdma@vger.kernel.org, Mark Bloch , Moshe Shemesh , Or Har-Toov , Saeed Mahameed , Shay Drory Subject: Re: [PATCH net-next V2 3/5] net/mlx5: E-switch, drop master egress rule under a SW vport LAG Message-ID: <20261130195242.GH804035@horms.kernel.org> References: <20261120075959.2533702-1-tariqt@nvidia.com> <20261120075959.2533702-4-tariqt@nvidia.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261120075959.2533702-4-tariqt@nvidia.com> On Fri, Nov 20, 2026 at 09:59:56AM +0200, Tariq Toukan wrote: > From: Shay Drory > > 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 > Reviewed-by: Moshe Shemesh > Reviewed-by: Mark Bloch > Signed-off-by: Tariq Toukan Reviewed-by: Simon Horman