| Message ID | 20250522195952.29265-1-linus.luessing@c0d3.blue |
|---|---|
| Headers | show
Return-Path:
<openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
secure) header.d=lists.infradead.org header.i=@lists.infradead.org
header.a=rsa-sha256 header.s=bombadil.20210309 header.b=s5V37POr;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org
(client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;
envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org;
receiver=patchwork.ozlabs.org)
Received: from bombadil.infradead.org (bombadil.infradead.org
[IPv6:2607:7c80:54:3::133])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4b3P1H2fVLz1yF7
for <incoming@patchwork.ozlabs.org>; Fri, 23 May 2025 09:01:37 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20210309; h=Sender:
Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc
:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:
List-Owner; bh=T7sMkWNsbbCrZRSuaySWgU/i5FFd/3v8kZusTXfMN88=; b=s5V37POr9tMqW9
T4FgXAtXnm3J4LRhzmfzwDxaoo2rDsqt0M5tfisdwUNcTWaOfPIyvtDxD+dW5sSJ81Y2aSOVJeobX
xVBr9CWZdYio3vKW1IlR3yXKahJIskme3rzLAlVCQ2jOXpmaMBAnFan7Lz2H6C/5vbpTNb2PWBgd+
VvbijwzOPOIcXBK42vj1gDZfgpjhKhe1AVBEuYcCI6Sr9dv2I1YJtfM0PbF6LtzON4ltEMUhIiHs3
400acnogYBizB34O0OBs18zeOmr2XQT31EZXUumHTbUSr/vJ30qrmR+JRVlEawHmQd34bulkQGDJx
rpW9gOVUygBaSU2VY5Og==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))
id 1uIEtW-00000002L4Q-1Oha;
Thu, 22 May 2025 23:00:10 +0000
Received: from mail.aperture-lab.de ([116.203.183.178])
by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))
id 1uIC5Q-000000024mg-3vkW
for openwrt-devel@lists.openwrt.org;
Thu, 22 May 2025 20:00:18 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)
with ESMTPSA id BBCF354C351;
Thu, 22 May 2025 22:00:00 +0200 (CEST)
From: =?utf-8?q?Linus_L=C3=BCssing?= <linus.luessing@c0d3.blue>
To: bridge@lists.linux.dev
Cc: netdev@vger.kernel.org, openwrt-devel@lists.openwrt.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
Nikolay Aleksandrov <razor@blackwall.org>, Ido Schimmel <idosch@nvidia.com>,
Ivan Vecera <ivecera@redhat.com>, Jiri Pirko <jiri@resnulli.us>,
Vladimir Oltean <olteanv@gmail.com>, Andrew Lunn <andrew@lunn.ch>,
Jonathan Corbet <corbet@lwn.net>, Simon Horman <horms@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <edumazet@google.com>, "David S . Miller" <davem@davemloft.net>,
Kuniyuki Iwashima <kuniyu@amazon.com>, Stanislav Fomichev <sdf@fomichev.me>,
Xiao Liang <shaw.leon@gmail.com>,
Markus Stockhausen <markus.stockhausen@gmx.de>,
Jan Hoffmann <jan.christian.hoffmann@gmail.com>,
Birger Koblitz <git@birger-koblitz.de>,
=?utf-8?q?Bj=C3=B8rn_Mork?= <bjorn@mork.no>
Subject: [PATCH net-next 0/5] net: bridge: propagate safe mcast snooping to
switchdev + DSA
Date: Thu, 22 May 2025 21:17:02 +0200
Message-ID: <20250522195952.29265-1-linus.luessing@c0d3.blue>
X-Mailer: git-send-email 2.49.0
MIME-Version: 1.0
X-Last-TLS-Session-Version: TLSv1.3
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20250522_130017_116655_65556485
X-CRM114-Status: UNSURE ( 6.36 )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -4.2 (----)
X-Spam-Report: Spam detection software,
running on the system "bombadil.infradead.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: For a plain Linux bridge we have a safety mechanism before
applying multicast snooping to payload IP packets in the fast path: We
only
apply it if both multicast snooping is enabled and an active IGMP [...]
Content analysis details: (-4.2 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/,
medium trust
[116.203.183.178 listed in list.dnswl.org]
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[116.203.183.178 listed in
sa-accredit.habeas.com]
0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to
Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[116.203.183.178 listed in
bl.score.senderscore.com]
0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The
query to Validity was blocked. See
https://knowledge.validity.com/hc/en-us/articles/20961730681243
for more information.
[116.203.183.178 listed in
sa-trusted.bondedsender.org]
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
X-Mailman-Approved-At: Thu, 22 May 2025 16:00:06 -0700
X-BeenThere: openwrt-devel@lists.openwrt.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org>
List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>,
<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>
List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/>
List-Post: <mailto:openwrt-devel@lists.openwrt.org>
List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help>
List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>,
<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org>
Errors-To:
openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org
|
| Series |
net: bridge: propagate safe mcast snooping to switchdev + DSA
|
expand
|
For a plain Linux bridge we have a safety mechanism before applying multicast snooping to payload IP packets in the fast path: We only apply it if both multicast snooping is enabled and an active IGMP/MLD querier was detected. Otherwise we default to flooding IPv4/IPv6 multicast traffic. This reduces the risk of creating multicast packet loss and by that packet loss for IPv6 unicast, too, which relies on multicast to work. Without an active IGMP/MLD querier on the link we are not able to get IGMP/MLD reports reliably and by that wouldn't have a complete picture about all multicast listeners. This safety mechanism was introduced in commit b00589af3b04 ("bridge: disable snooping if there is no querier"). To be able to use this safty mechanism on DSA/switchdev capable hardware switches, too, and to ensure that a DSA bridge behaves similar to a plain software bridge this patchset adds a new variable to track if multicast snooping is active / safely applicable. And notifies DSA and switchdev when this changes. This has been tested on an OpenWrt powered Realtek RTL8382 switch, a ZyXEL GS1900-24HP v1, with the following, pending patchset for OpenWrt to integrate this: https://github.com/openwrt/openwrt/pull/18780 Regards, Linus