net: ethernet: mtk_eth_soc: fix tx vlan tag for llc packets
authorFelix Fietkau <nbd@nbd.name>
Sun, 31 Aug 2025 18:20:07 +0000 (20:20 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Sep 2025 23:27:30 +0000 (16:27 -0700)
commitd4736737110ffa83d29f1c5d17b26113864205f6
tree3f5f726e9f27550ae6964e1f50d8bad3d530e6ef
parentc06ca8ce90bae91744ac93c7e09ebeec6ac3df90
net: ethernet: mtk_eth_soc: fix tx vlan tag for llc packets

When sending llc packets with vlan tx offload, the hardware fails to
actually add the tag. Deal with this by fixing it up in software.

Fixes: 656e705243fd ("net-next: mediatek: add support for MT7623 ethernet")
Reported-by: Thibaut VARENE <hacks@slashdirt.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250831182007.51619-1-nbd@nbd.name
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c