MTK_ETH:fix wrong checksum test bit definition

This commit is contained in:
padavanonly 2024-09-10 09:45:00 +08:00 committed by GitHub
parent 2970fcfdea
commit 11fa6d9655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3542,7 +3542,7 @@ static int mtk_probe(struct platform_device *pdev)
eth->rx_dma_l4_valid = RX_DMA_L4_VALID_PDMA; eth->rx_dma_l4_valid = RX_DMA_L4_VALID_PDMA;
eth->ip_align = NET_IP_ALIGN; eth->ip_align = NET_IP_ALIGN;
} else { } else {
if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2)) if (MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_RX_V2))
eth->rx_dma_l4_valid = RX_DMA_L4_VALID_V2; eth->rx_dma_l4_valid = RX_DMA_L4_VALID_V2;
else else
eth->rx_dma_l4_valid = RX_DMA_L4_VALID; eth->rx_dma_l4_valid = RX_DMA_L4_VALID;