Article View: linux.kernel.netdev
Article #10848[PATCH net 0/2] net: dsa: realtek: rtl8365mb: fix FDB lookups in VLAN-unaware bridges
From: Stijn Cleynhens
Date: Wed, 04 Nov 2026 08:25
Date: Wed, 04 Nov 2026 08:25
45 lines
13116 bytes
13116 bytes
In a VLAN-unaware bridge, DSA installs FDB and MDB entries with VID 0,
but the switch classifies untagged frames to the bridge PVID and looks up
VID 0 by FID, while the driver installs IVL entries. Nothing matches, so
a station that roams from behind a user port to behind the CPU port (a
Wi-Fi client moving between access points) stays unreachable until the
learned entry ages out.
Patch 1 makes VID 0 use IVL; patch 2 depends on it. Patch 2 keeps the
neutral PVID (VID 0) on ports of a VLAN-unaware bridge and only programs
the bridge PVID while the port filters VLANs. Tagged frames in a
VLAN-unaware bridge are not covered, see patch 2.
Tested on OpenWrt's 6.18 kernel, which carries the rtl8365mb backports up
to v7.4; the code these patches touch is the same as in net. On an
RTL8367S-VB (TP-Link Deco X50-PoE, with the family D series applied): a
station learned behind the uplink that moves behind the CPU port answers
10/10 pings right away, its stale entry replaced by the CPU one, and
switching VLAN filtering off and on at runtime keeps traffic flowing. An
earlier revision of patch 2, with the same logic, was tested the same way
on an RTL8367S (Deco X50-Outdoor), 0/10 before and 10/10 after. Both
patches build without warnings with W=1 C=1.
Note for Mieczyslaw's RTL8367S-VB series in net-next (v8): patch 2 adds a
vlan_filtering argument to rtl8365mb_vlan_pvid_port_clear(). The family D
path that series adds there reads dsa_port_is_vlan_filtering(), which
still returns the old state while filtering is being turned off, so it
should take the new argument instead; otherwise family D drops untagged
frames after filtering is disabled. Happy to send that as a follow-up
once both are in.
Stijn Cleynhens (2):
net: dsa: realtek: rtl8365mb: use IVL in VLAN 0
net: dsa: realtek: rtl8365mb: keep the neutral PVID in VLAN-unaware
bridges
drivers/net/dsa/realtek/rtl8365mb_main.c | 147 ++++++++++++++++-------
drivers/net/dsa/realtek/rtl8365mb_vlan.c | 40 +++++-
drivers/net/dsa/realtek/rtl8365mb_vlan.h | 4 +-
3 files changed, 141 insertions(+), 50 deletions(-)
base-commit: 787268686c64be60023743b527645a907e38ccca
--
2.56.0
Technical Details
Message-ID:
<20261104082514.2139278-1-stijncleynhens@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356285-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-356285-linux-kernel-netdev=dewy.ru
From: stijncleynhens@gmail.com (Stijn Cleynhens)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 0/2] net: dsa: realtek: rtl8365mb: fix FDB lookups in VLAN-unaware bridges
Date: Wed, 4 Nov 2026 09:25:12 +0100
Organization: Usenet Network
Message-ID: <20261104082514.2139278-1-stijncleynhens@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3352990"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WMWiwqqR21AvJd4f4DHn1FJAS8Y= sha256:f2d7bn6Ldv/KS/X8wYIsk75y2nzyT9wsL303AkBJNzg=
sha1:UgzysXnXLpzSVxtUjo+BQp/0pGM= sha256:VVos8GYrtCqfDwk1u7V8zblIh02xPhp6gwO1/ni0vMU=
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 B6200112B33; Wed, 4 Nov 2026 11:25:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
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=gmail.com
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 3hUXKp4mr8Z1;
Wed, 4 Nov 2026 11:25:51 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-356285-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 7DDF6112B2E; Wed, 4 Nov 2026 11:25:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 2634729DFA; Wed, 4 Nov 2026 08:25:38 +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=1793780734;
b=mPpcnTamnAGaK25j6tTejF3h4LeKOgbEPQDqRXlPKA2oBBrL6mJVvu9Tx/9MSLUlMLK2
OBWPrf/AIUuxeeozDpWATRMTAUn4OdWqPt9i27sDAypF/O+ZpgsNvyurNWK/97i2PCF9n
IjNq60ZVX5SKdzgvLphihohkzFHr1QACiyEIfgtFXqLi1mY5/uHcTIDLdJ0s6Kc0zGc6P
DZPcKoxcmKW1R92uqQFQmdEhEMhQ8lcoUKnuYkOg5lwjwqssYON3urb77QTfjcdFygpWU
Qz5TnuTkaz+PE/rRwXLkFWFpuRhHDCqi4PdjgVFnRb4Wi1QxJaOeTS3U/uc21S3PEbQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793780734;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Transfer-Encoding;
bh=YUgy6QisfbO0Ff1caes8uOGp4z1pNB6eutk+Z/JiFus=;
b=DvbH/22sO6NHSMgZFqGu/7/yEVpM4LHz/zTwAR2ICT9TFks8gY5pIohod+VYFnGiqxcT
t3l33rMXIC8S8OY7qnJ78rXcinOHaoOfiEdZM6CYqQDKRaDlwhH49CH9iQ2TpZcbK+Xjc
92PLoCK25HrlkfZwoJg/tIcYzsZWDH3Do2X5pc79AQHGqYQqO3xg7CXmkkMy8ICYoWRsN
HfGjWXkh/Q/O3oYLLuE+xjvAJi3ayxLzjpQkAiwHBIupFlUdGWKYIIlOxCwJuy6FE7Ahx
qV3LEBWQrp9EC7oS8H9cBmaIK4QN1IjBA26BmJ1vNgVN9ivj7Ju0F256RbvccBbZXHw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Tbiu7CRW;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 783DD606A337;
Wed, 4 Nov 2026 08:25:34 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Tbiu7CRW
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793780733;
b=GHUbO/J3vzBqUzD6Ws9UKUzMPQ6pcLfQyY/42E4O4Us5+gr43GyZCS+z8W/h3P0/BIhx
xJ9mOk+jfeTdscb7H6BKgNIURFpqR2aNitjpAoei54dDKCwNYuJA6hDdCkOr4RBxxrFGx
q8aA3MNN64sTUc3MbPY/en2ngOChQHUMKQUhCRt1477w46rPYhMh+2BUuhdaWNsdTnisv
5b75T/VpqJwCP3C3JnOs8pttNM0to1cEx+HZjNJqrcmU2fyirb0N2+oM8yyRTSTi/Ysup
/hebJ3HNVncwrZ1twC2pqSNMf0cHI/g0DAJFmbP/smz2y3zKHIfqus/82FRw10h39Fw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793780733;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding;
bh=YUgy6QisfbO0Ff1caes8uOGp4z1pNB6eutk+Z/JiFus=;
b=E4pdMqTUTBJCSc6pM2agWPpXbuCJKGm9VyMecI2QdFnUmaSE9hSRk4SE7dsiCl9TE/p4
XcwE1L2hagARyZhc3N75DA/0MPk4hlKiBRQf7Ew5u3vNlpTN17nIrfIpxFH5MkAM2lugR
59VmHU+Wxse21f+Nj9oe1k0xlbngvoRx4uWnXnWe7ixv92p9jvMkSZPTRK1Rx+jhfC4GE
99YRKBv+j5ebtGH0ruUL0vP+oAz165J5S2szg9rWNgYEWXZJezI7wpd4w04WNKtc3emRQ
lPuuQ3GIwsMmeYDS5L+HFuX9vp0zzKGZ6sJsxelMV4grz/1mMkJZo4DdEjm2GCN5Diw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Tbiu7CRW;
arc=none smtp.remote-ip=209.85.208.50
X-Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45AF2606A328
for <netdev@vger.kernel.org>; Wed, 4 Nov 2026 08:25:33 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 45AF2606A328
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-6b547d6c07bso425168a12.1
for <netdev@vger.kernel.org>; Wed, 04 Nov 2026 00:25:32 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793780731; x=1794385531; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=YUgy6QisfbO0Ff1caes8uOGp4z1pNB6eutk+Z/JiFus=;
b=Tbiu7CRWgD+/9m3CNtgdOnD0RLzxojVz8GkGmenqWLg18iTt/BEiVanrxcWWPzP09b
ur79v7mYhm22QpAmlOwx7P6sKcZx9Sxf6DYdVCtfVhIRrDiTv1il68F8UYtDeLz0M3Ug
cpR4TldbDnreSarMLpeJICk+KZmvs5bSE8TqhLyipC6wWt/1Ss5QdL57JXh7A9lC4jrw
bReIyXUBW8A83jivw78RAmu2rpFuUKsKZdJfgg3veFBs9N0D1QBslHYMfMH1ZHn0wvpw
IfLv43UPY++WjdO4x3u522bwgZ3lc2UHewGJXOlijB0CgO7WvcNYKifnwHtm8vqlXdYh
mzMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793780731; x=1794385531;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=YUgy6QisfbO0Ff1caes8uOGp4z1pNB6eutk+Z/JiFus=;
b=DVmTqtGdObeUnQFXp6KCmRtRXowb3C48da6pV15vu8WGX6JccEVVLXfDBT2ksCWmcZ
GLacKMUAllja6WgV6e/7STQ/zfxzULNBmtCIUJSyDUxt11xe8pbL2yqd2mkNtZl+xVZM
jm7u0l9jlBJdBNWfWLsaKCC0pcBotJ/uhc8+e1tW3cgahj73H2yCeTp5TdZwFrUGUMhX
XwOh9mbae1cW/+/R4gC927Vu4ISMoPPut9+NG4EbLQZiYuIWKXPw2c+xJgTCnDFg0lLj
G6Zbjc2ruERQsEfT3c5zdpyDeJ6GRxNlYwr/DR3JudLbS6+sH4i2aAnEL0iei2VYAcrk
BQDQ==
X-Gm-Message-State: APuU4Z/AtmVBdpycWPrU8BHXumMRE032fy5u0jAlI9snEEha1qEXfy5S
YR8MXukGZOBHe5CdFtkGcrxAoxtP5ePGRut5zXRetl/xBdJgtGIpDJeNuKztQu7G
X-Gm-Gg: AYBFou3ncW8NdpEOKk7gxSqEQlr4N6O7c5FR8iA9fx8L4elBpW0hVzP0s8F0l3myi1y
47ka3lRcwt53O7/HGLz6cFv1o1g8nGEK1camokbsgLkBPAegS7Iey4MOgI8vlJq/DKjhA/hisR1
wqxtNzWvPfUHe7nSV4hphF/6Y36e7XnPnxlev7g4+JEDTCDYUKJpm621KoF2eXb6qQv3yhKTl7P
/VIyDYwVijzGhCqkmmfQhCoM8xn9SAgIAVsjDM8rPTGlWHtzejRmnlIhWwh7gfu4d3/Zt3L54IN
1rLq3wcA383zlZWxu8zTvKKgCnvzmHEt/JxNUOM488kzyZKVNdONQelJMgP6faVoYD1yYDXHgIX
5SRaq1A5OkmvkwIH9J7AlD+ZAW4bS0b8FW5RENcSTrOZJoxbzxvj8WhI0PuoeG6+3huoFEetEr3
GkBrKOgtYgWjec7++BdB0U4aSSRCkJSX9Ff74iek/CMtz5T6iuL39xSCP6b8PMGJtdc6dSlqmCx
PDAl1kXoPDfQmBU56LZHNyOy+VEbD3FCzAAKRYFKtK6GtgGkH1nw69oWhXjmoVvHL407tvDB1Da
YXhAP1WkFXLnzvxpG6oRTt4qjGGycNRI3pw8YvJ0P2IDrGdHaGw3o6We8r0MHq37IeXX1zYST/c
0+LFN6CHMZNWN7rAdJiqb+4zK7vdTbnDFZwbIm5Atstv+H8yhfuiCS56mvNT8iLrvs4Fm8xne3Y
QU37AjEVUvokMVofK2UU9J4Q==
X-Received: by 2002:a05:6402:234f:b0:6b4:2960:d383 with SMTP id 4fb4d7f45d1cf-6b4dcc50022mr12617929a12.8.1793780731417;
Wed, 04 Nov 2026 00:25:31 -0800 (PST)
X-Received: from desktop.home.arpa (2a02-1810-1e16-ac80-48ed-b9ce-6098-90a2.ip6.access.telenet.be. [2a02:1810:1e16:ac80:48ed:b9ce:6098:90a2])
by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6b55ac81386sm483243a12.29.2026.11.04.00.25.30
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 04 Nov 2026 00:25:31 -0800 (PST)
X-Cc: Linus Walleij <linusw@kernel.org>,
Luiz Angelo Daros de Luca <luizluca@gmail.com>,
Alvin ล ipraga <alvin.sipraga@analog.com>,
Andrew Lunn <andrew@lunn.ch>,
Vladimir Oltean <olteanv@gmail.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Mieczyslaw Nalewaj <namiltd@yahoo.com>,
linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.56.0
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