From: Felix Fietkau Date: Mon, 14 Nov 2022 12:42:12 +0000 (+0100) Subject: net: ethernet: mtk_eth_soc: pass correct VLAN protocol ID to the network stack X-Git-Tag: v6.6.17~5932^2~212^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=190487031584a1d24c92e0d82717a30169ac8929;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 1cf76fd..891dd69 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1936,7 +1936,7 @@ static int mtk_poll_rx(struct napi_struct *napi, int budget, htons(RX_DMA_VPID(trxd.rxd4)), RX_DMA_VID(trxd.rxd4)); } else if (trxd.rxd2 & RX_DMA_VTAG) { - __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), + __vlan_hwaccel_put_tag(skb, htons(RX_DMA_VPID(trxd.rxd3)), RX_DMA_VID(trxd.rxd3)); }