Skip to content

net: dsa: mt7628: add VLAN filtering support

Joris Vaisvila netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: dsa: mt7628: rework vlan block allocatordrivers/net/dsa/mt7628.c+104 -560 replies
2/6net: dsa: mt7628: add port bridge offload supportdrivers/net/dsa/mt7628.c+43 -00 replies
3/6net: dsa: tag: mt7628: add bridge supportnet/dsa/tag_mt7628.c+5 -30 replies
4/6net: dsa: mt7628: add VLAN filtering supportdrivers/net/dsa/mt7628.c+114 -80 replies
5/6net: dsa: tag: mt7628: add VLAN awareness supportnet/dsa/tag_mt7628.c+50 -121 reply
6/6MAINTAINERS: add myself as MT7628 embedded switch maintainerMAINTAINERS+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next v1 0/6] net: dsa: mt7628: add VLAN filtering support

Add bridge offload and VLAN filtering support to the MT7628 switch.

The MT7628 switch uses VLAN membership as its forwarding mechanism. This series uses tag_8021q VLANs to emulate VLAN-unaware bridge forwarding, while using the bridge's VLAN configuration directly when VLAN filtering is enabled. A major limitation is that VIDs cannot be reused between separate bridges, as this would allow cross-bridge forwarding. tag_8021q VIDs are also reserved for the same reason.

The switch driver adds 6x "reserved" VLAN slots for use by tag_8021q that are only programmed on VLAN-unaware ports, together with double tagging, while the remaining slots are only programmed for VLAN-aware ports.

The tagger is updated to preserve the existing VLAN tags on transmit and receive.

Thanks,
Joris

Joris Vaisvila (6):
net: dsa: mt7628: rework vlan block allocator
net: dsa: mt7628: add port bridge offload support
net: dsa: tag: mt7628: add bridge support
net: dsa: mt7628: add VLAN filtering support
net: dsa: tag: mt7628: add VLAN awareness support
MAINTAINERS: add myself as MT7628 embedded switch maintainer

 MAINTAINERS              |   9 ++
 drivers/net/dsa/mt7628.c | 305 ++++++++++++++++++++++++++++++++-------
 net/dsa/tag_mt7628.c     |  66 +++++++--
 3 files changed, 313 insertions(+), 67 deletions(-)
Signature · 1 line
2.55.0