mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net v2 0/2] net: dsa: mt7530: fix trapped frame forwarding and egress tagging
@ 2026-09-23  5:51 Tao Gong
  2026-09-23  5:51 ` [PATCH net v2 1/2] net: dsa: mt7530: use consistent egress tag for trapped link-local frames Tao Gong
  2026-09-23  5:51 ` [PATCH net v2 2/2] net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583 Tao Gong
  0 siblings, 2 replies; 5+ messages in thread
From: Tao Gong @ 2026-09-23  5:51 UTC (permalink / raw)
  To: netdev
  Cc: Chester A . Unal, Daniel Golle, Andrew Lunn, Vladimir Oltean,
	David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Matthias Brugger, AngeloGioacchino Del Regno, Lorenzo Bianconi,
	Arınç ÜNAL, Florian Fainelli, linux-kernel,
	linux-arm-kernel, linux-mediatek, Tao Gong

This series resolves two issues in the MT7530 DSA switch driver preventing
trapped link-local control frames (such as STP BPDUs) from reaching the CPU
host when bridge VLAN filtering is enabled:

1. Commit 3ac85bcfd404 ("net: dsa: mt7530: preserve VLAN tags on trapped
   link-local frames") set MT7530_VLAN_EG_DISABLED to preserve VLAN 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.
   When bridge VLAN filtering is active, the CPU port is in stack mode,
   causing incoming untagged BPDUs (01:80:C2:00:00:00) to be egressed with
   a VLAN tag, which userspace STP daemons (such as ustpd) and the kernel
   bridge drop. MT7530_VLAN_EG_CONSISTENT correctly preserves wire state
   (untagged frames stay untagged, tagged frames stay tagged).

2. On Airoha EN7581 and AN7583 switch IP, setting MT7531_CFC (0x04)
   CPU_PMAP alone is insufficient; 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.

Changes in v2:
  - Rebased onto net/main
    (git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git) adapting
    to mt7530_rmw() instead of net-next's regmap helpers, resolving the
    patch application failure on net-0 noted by Jakub Kicinski.
  - Carried over Lorenzo Bianconi's Acked-by on patch 2 as the underlying
    logic is unchanged.

Tao Gong (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: 9c572a83037a7dcd653ba3a9cc468c16b857d0c9
-- 
2.55.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-27  6:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23  5:51 [PATCH net v2 0/2] net: dsa: mt7530: fix trapped frame forwarding and egress tagging Tao Gong
2026-09-23  5:51 ` [PATCH net v2 1/2] net: dsa: mt7530: use consistent egress tag for trapped link-local frames Tao Gong
2026-09-27  6:06   ` netdev-bot+sashiko
2026-09-23  5:51 ` [PATCH net v2 2/2] net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583 Tao Gong
2026-09-27  6:06   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®