Skip to content

Commit 1904870

Browse files
nbd168kuba-moo
authored andcommitted
net: ethernet: mtk_eth_soc: pass correct VLAN protocol ID to the network stack
Use the id from the DMA descriptor instead of hardcoding 802.1q Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 570d0a5 commit 1904870

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mediatek/mtk_eth_soc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ static int mtk_poll_rx(struct napi_struct *napi, int budget,
19361936
htons(RX_DMA_VPID(trxd.rxd4)),
19371937
RX_DMA_VID(trxd.rxd4));
19381938
} else if (trxd.rxd2 & RX_DMA_VTAG) {
1939-
__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q),
1939+
__vlan_hwaccel_put_tag(skb, htons(RX_DMA_VPID(trxd.rxd3)),
19401940
RX_DMA_VID(trxd.rxd3));
19411941
}
19421942

0 commit comments

Comments
 (0)