From: Tao <gongtao0607@gmail.com>
To: netdev@vger.kernel.org
Cc: Tao <gongtao0607@gmail.com>
Subject: [PATCH net 0/2] net: dsa: mt7530: fix trapped frame forwarding and egress tagging
Date: Sat, 19 Sep 2026 06:52:10 +0000 [thread overview]
Message-ID: <20260919065214.31604-1-gongtao0607@gmail.com> (raw)
This patch series addresses two issues preventing trapped control frames
(such as STP BPDUs, 802.1X PAE, and LLDP) from properly reaching the CPU
host on MT7530-family switches, specifically when bridge VLAN filtering is
active and on Airoha EN7581 / AN7583 SoCs.
Patch 1 fixes the egress tagging mode for trapped link-local frames in
BPC, RGAC1, and RGAC2. commit 3ac85bcfd404 ("net: dsa: mt7530: preserve
VLAN tags on trapped link-local frames") used MT7530_VLAN_EG_DISABLED
to preserve tags, but in hardware this disables the per-packet override
and causes trapped frames to follow the CPU port's active VLAN table
(VAWD2) rule. Under bridge VLAN filtering, this causes incoming untagged
BPDUs to be egressed with a VLAN tag, breaking userspace STP daemons
(such as ustpd) and the kernel bridge. MT7530_VLAN_EG_CONSISTENT
correctly preserves wire state (untagged frames stay untagged, tagged
frames stay tagged).
Patch 2 fixes hardware CPU port forwarding on EN7581 and AN7583 switches.
Setting MT7531_CFC (0x04) CPU_PMAP alone is insufficient on this IP; the
switch MAC forwarding control (MT753X_MFC, 0x10) must also have CPU_EN
and CPU_PORT configured for trapped frames to exit to the CPU conduit.
Tested on Gemtek W1700K (Airoha AN7581) with bridge VLAN filtering and
RSTP enabled, verifying that untagged BPDUs are correctly trapped,
delivered untagged to the CPU, and achieve STP convergence.
Tao (2):
net: dsa: mt7530: use consistent egress tag for trapped link-local
frames
net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583
drivers/net/dsa/mt7530.c | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
base-commit: e3bfd25626b44b6fa61a13c17178922171d519ce
--
2.55.0
next reply other threads:[~2026-09-19 6:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-19 6:52 Tao [this message]
2026-09-19 6:52 ` [PATCH net 1/2] net: dsa: mt7530: use consistent egress tag for trapped link-local frames Tao
2026-09-19 6:52 ` [PATCH net 2/2] net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583 Tao
2026-09-19 17:32 ` Lorenzo Bianconi
2026-09-23 2:24 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260919065214.31604-1-gongtao0607@gmail.com \
--to=gongtao0607@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox