diff options
| author | Jiawen Wu <jiawenwu@trustnetic.com> | 2026-07-13 14:04:41 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-07-22 08:14:16 -0700 |
| commit | f5cfb576ce39ba5647024c6d6eeb5b7a822fab6e (patch) | |
| tree | 92782a1bd9b6b71fd15c64cd3a3f20c6063269b4 /include/linux | |
| parent | 40c705961d498f97b94b43db3eb046a2037a0e2d (diff) | |
| download | linux-next-f5cfb576ce39ba5647024c6d6eeb5b7a822fab6e.tar.gz linux-next-f5cfb576ce39ba5647024c6d6eeb5b7a822fab6e.zip | |
net: libwx: disable TX VLAN offload for packets with >2 VLAN tags
The current hardware does not support TX VLAN offload for packets with
three or more VLAN tags. When such packets are transmitted with hardware
VLAN offload enabled, the hardware may malfunction or produce corrupted
frames.
Add a check in wx_features_check() to parse the VLAN depth of the
skb. If more than two VLAN tags are detected (including both the
hardware tag and in-band tags), strip NETIF_F_HW_VLAN_CTAG_TX and
NETIF_F_HW_VLAN_STAG_TX from the feature set. This forces the
kernel networking stack to handle VLAN insertion in software for
these specific packets, ensuring correct transmission.
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
Link: https://patch.msgid.link/069DF89AA8029189+20260713060441.276612-1-jiawenwu@trustnetic.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
