Article View: linux.kernel.netdev
Article #24773Re: [PATCH net-next V2 3/5] net/mlx5: E-switch, drop master egress rule under a SW vport LAG
From: Simon Horman
Date: Mon, 30 Nov 2026 19:52
Date: Mon, 30 Nov 2026 19:52
38 lines
9841 bytes
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>
Technical Details
Message-ID:
<20261130195242.GH804035@horms.kernel.org>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374427-linux-kernel-netdev=dewy.ruReferences:
<20261120075959.2533702-1-tariqt@nvidia.com> <20261120075959.2533702-4-tariqt@nvidia.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374427-linux-kernel-netdev=dewy.ru From: horms@kernel.org (Simon Horman) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next V2 3/5] net/mlx5: E-switch, drop master egress rule under a SW vport LAG Date: Mon, 30 Nov 2026 19:52:42 +0000 Organization: Usenet Network Message-ID: <20261130195242.GH804035@horms.kernel.org> References: <20261120075959.2533702-1-tariqt@nvidia.com> <20261120075959.2533702-4-tariqt@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1522913"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0o9Lpb/wK9w4Xvoluzf2iDDF8k8= sha256:N3s/uavxGExu/bXpcJ0MZq2Q4zKnBaHxHDKJXx7P97g= sha1:u1x44MDiZpBErAT2NILi70ZrY6E= sha256:SxJWCjIbjgNx6/vyu0RebHLetS3/YsKfYU5a6xXY5n4= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 7AFD9125FFC; Mon, 30 Nov 2026 22:53:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RGZeV1g3BIqz; Mon, 30 Nov 2026 22:53:06 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-374427-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 7F080126000; Mon, 30 Nov 2026 22:52:57 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 4746A24074; Mon, 30 Nov 2026 19:52:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796068368; b=Y4sdGlzrCoGWT+EEAecChkg8Mm761ltsiV/7P2l5C3u8eA+rx+93lRhwkoEYRUg4hajM g7izYqpkOsSV7BsnW/624Gwu9Yj6WbSKfiWtAzZZkxaWlEkQiqdLDySu8754ssIwsRz32 Y2M0kjC769zP3avPk1q9g5LhMdaRNcnXbuj+haia8ecSVAB9cZkc49SP8cLlJwYobmNpQ icKjx5ZleXAO+rCQ8+zcKctBVm1eKN3wlfS1UwvCfhruF5r2wOwTtnZugr3a12gEUu/Xc GtLgqLL1Ps3xL1uxr3Up4VFlucxw5dOsmWCzFzNgqaf+PWcKU7e92CxmkK+Mi9uZHaA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796068368; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=PxnYKsxnw+shc0a0CUyOgtWTBGLe3WyFCDxp2tEzhOo=; b=Q3/I3Snyke7dPt2LuxuKVBjW0jNqkWmqlRDAttVS9sHxjF/d11IuzMJdZEnhI/vgprhx sA3yVdcU+mV35IbNDAiZ5H2sveqO/xmWVQPOxauqpLki7NUJmQsE1KisySyXyiaNyteZe KMYNb/AkciASGAp5at7Qo50Bj6pBJu1I8P2maKT87kNOAi+B3EN8hFHCZWXW+zfT0Tlii KqHEoPR9nWxSSfDzPJJ/gLqSCpjrM4TwH2RRMZKv9sfIyysgdx0XBisdesXFL7d9pGz0a w2hP5RZtLuv/d195Pi+wX+K+o2dffBqzZUhLfM55lF0BiJoAA0wG4lVZMyzEnlepT6g== X-ARC-Authentication-Results: i=2; 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=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC5F6606A699; Mon, 30 Nov 2026 19:52:48 +0000 (UTC) X-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 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-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== X-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== X-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 X-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) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDB5B1F0089A; Mon, 30 Nov 2026 19:52:44 +0000 (UTC) X-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== X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>, Akiva Goldberger <agoldberger@nvidia.com>, Gal Pressman <gal@nvidia.com>, Jason Gunthorpe <jgg@ziepe.ca>, Leon Romanovsky <leon@kernel.org>, linux-rdma@vger.kernel.org, Mark Bloch <mbloch@nvidia.com>, Moshe Shemesh <moshe@nvidia.com>, Or Har-Toov <ohartoov@nvidia.com>, Saeed Mahameed <saeedm@nvidia.com>, Shay Drory <shayd@nvidia.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261120075959.2533702-4-tariqt@nvidia.com>