Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: ethernet: ti: cpsw: Support cascaded switches
@ 2026-12-03  8:05 A. Sverdlin
  2026-12-03  8:05 ` [PATCH net-next 1/3] net: ethernet: ti: cpsw_new: bypass ALE in promiscuous mode A. Sverdlin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: A. Sverdlin @ 2026-12-03  8:05 UTC (permalink / raw)
  To: netdev
  Cc: Alexander Sverdlin, Siddharth Vadapalli, Roger Quadros,
	Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Karl Mehltretter, Kevin Hao, Guangshuo Li,
	Aleksandr Loktionov, Ilias Apalodimas, Murali Karicheri,
	Grygorii Strashko, Mugunthan V N, linux-omap, Lukas Stockmann

From: Alexander Sverdlin <alexander.sverdlin@siemens.com>

A LAN9303 DSA switch connected to one CPSW port doesn't work: its
tagging protocol encodes the source port in the VLAN tag, but the
VLAN-aware ALE drops frames with VIDs it doesn't know even on a
promiscuous interface, and the host port's untagged-egress handling
strips the tag before DSA can decode it.

Make promiscuous mode deliver all frames unmodified to the host in
both cpsw drivers (patches 1 and 2) and keep the VLAN tag intact on a
DSA conduit (patch 3), so VLAN-tagging DSA switches work behind CPSW.

Tested on AM335x with a LAN9303 behind one CPSW port in dual-MAC mode.

Alexander Sverdlin (3):
  net: ethernet: ti: cpsw_new: bypass ALE in promiscuous mode
  net: ethernet: ti: cpsw: forward unknown VLANs in promiscuous switch
    mode
  net: ethernet: ti: cpsw: don't untag frames on DSA conduit

 drivers/net/ethernet/ti/cpsw.c      | 16 ++++++++++++++++
 drivers/net/ethernet/ti/cpsw_new.c  | 18 ++++++++++++------
 drivers/net/ethernet/ti/cpsw_priv.c |  5 +++++
 3 files changed, 33 insertions(+), 6 deletions(-)

-- 
2.56.1


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

end of thread, other threads:[~2026-12-03  9:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  8:05 [PATCH net-next 0/3] net: ethernet: ti: cpsw: Support cascaded switches A. Sverdlin
2026-12-03  8:05 ` [PATCH net-next 1/3] net: ethernet: ti: cpsw_new: bypass ALE in promiscuous mode A. Sverdlin
2026-12-03  9:13   ` Siddharth Vadapalli
2026-12-03  8:05 ` [PATCH net-next 2/3] net: ethernet: ti: cpsw: forward unknown VLANs in promiscuous switch mode A. Sverdlin
2026-12-03  8:05 ` [PATCH net-next 3/3] net: ethernet: ti: cpsw: don't untag frames on DSA conduit A. Sverdlin

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