Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Nicolai Buchwitz
Wed, 18 Nov 2026 20:09
Re: [PATCH net-next] net: stmmac: xgmac: Report the VLAN tag type from the descriptor
Author: Nicolai Buchwitz
Date: Wed, 18 Nov 2026 20:09
Date: Wed, 18 Nov 2026 20:09
40 lines
10364 bytes
10364 bytes
Hi Maxime On 18.11.2026 17:21, Maxime Chevallier wrote: > Stmmac's double VLAN handling hasn't been working great for a while, > it's been recently reworked for dwmac4 by Ovidiu Panait. In that work, > it was found that the tag stripping hardcodes the 8021Q tag type for > XGMAC while stripping the tag, while the IP actually reports the outer > tag type in the descriptor. > > The tag type can be one of 6 different values (note inner/outer is > reversed in the macro names): > > - XGMAC_ET_LT_VLAN_STAG single S-tag > - XGMAC_ET_LT_VLAN_CTAG single C-tag > - XGMAC_ET_LT_DVLAN_CTAG_CTAG outer C-tag, inner C-tag > - XGMAC_ET_LT_DVLAN_STAG_STAG outer S-tag, inner S-tag > - XGMAC_ET_LT_DVLAN_CTAG_STAG outer S-tag, inner C-tag > - XGMAC_ET_LT_DVLAN_STAG_CTAG outer C-tag, inner S-tag > > Report that tag type through a dedicated desc ops and report it to the > stack. > > We keep the 8021Q fallback when we don't have the ops, as we don't > set NETIF_F_HW_VLAN_STAG_FILTER on the cores that don't support that. > > This has been tested on AgileX5 with the vlan.py selftest. > > Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Isn't this a fix too? I mean xgmac advertises STAG_RX but still reports S-tags as 802.1Q. Then again nobody seems to have hit it so far, so net-next is probably fine. Anyway: Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Thanks, Nicolai
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads