linux/net/dsa
Joris Vaisvila 44204fd425 net: dsa: initial MT7628 tagging driver
Add support for the MT7628 embedded switch's tag.

The MT7628 tag is merged with the VLAN TPID field when a VLAN is
appended by the switch hardware. It is not installed if the VLAN tag is
already there on ingress. Due to this hardware quirk the tag cannot be
trusted for port 0 if we don't know that the VLAN was added by the
hardware. As a workaround for this the switch is configured to always
append the port PVID tag even if the incoming packet is already tagged.
The tagging driver can then trust that the tag is always accurate and
the whole VLAN tag can be removed on ingress as it's only metadata for
the tagger.

On egress the MT7628 tag allows precise TX, but the correct VLAN tag
from tag_8021q is still appended or the switch will not forward the
packet.

Signed-off-by: Joris Vaisvila <joey@tinyisr.com>
Link: https://patch.msgid.link/20260813190241.789323-4-joey@tinyisr.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-08-18 15:50:13 +02:00
..
conduit.c net: dsa: remove redundant netdev_lock_ops() from conduit ethtool ops 2026-04-16 19:10:48 -07:00
conduit.h
devlink.c devlink: pass extack through to devlink_param::get() 2025-11-20 19:01:22 -08:00
devlink.h
dsa.c net: dsa: drop explicit NULL comparisons 2026-08-14 13:57:27 -07:00
dsa.h
Kconfig net: dsa: initial MT7628 tagging driver 2026-08-18 15:50:13 +02:00
Makefile net: dsa: initial MT7628 tagging driver 2026-08-18 15:50:13 +02:00
netlink.c
netlink.h
port.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
port.h
stubs.c
switch.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
switch.h
tag_8021q.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
tag_8021q.h
tag_ar9331.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_brcm.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_dsa.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_gswip.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_hellcreek.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_ksz.c net: dsa: microchip: add KSZ8463 tail tag handling 2026-07-31 16:29:56 -07:00
tag_lan9303.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_mt7628.c net: dsa: initial MT7628 tagging driver 2026-08-18 15:50:13 +02:00
tag_mtk.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_mxl-gsw1xx.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_mxl862xx.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_netc.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_none.c
tag_ocelot_8021q.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_ocelot.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_qca.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_rtl4_a.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_rtl8_4.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_rzn1_a5psw.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_sja1105.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_trailer.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_vsc73xx_8021q.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_xrs700x.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag_yt921x.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag.c net: dsa: Fix skb ownership in taggers 2026-06-27 15:44:12 -07:00
tag.h net: dsa: introduce the dsa_xmit_port_mask() tagging protocol helper 2025-11-28 20:03:39 -08:00
trace.c
trace.h
user.c net: dsa: drop explicit NULL comparisons 2026-08-14 13:57:27 -07:00
user.h