mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
ceb1451c10
- implement multiqueue via qdma hardware shaper to deal with ports with different speeds - implement hardware DSA untagging - add NETIF_F_ALL_TSO to reduce unnecessary segmentation Signed-off-by: Felix Fietkau <nbd@nbd.name>
23 lines
777 B
Diff
23 lines
777 B
Diff
From: Felix Fietkau <nbd@nbd.name>
|
|
Date: Thu, 27 Oct 2022 19:50:31 +0200
|
|
Subject: [PATCH] net: ethernet: mtk_eth_soc: account for vlan in rx
|
|
header length
|
|
|
|
The network stack assumes that devices can handle an extra VLAN tag without
|
|
increasing the MTU
|
|
|
|
Signed-off-by: Felix Fietkau <nbd@nbd.name>
|
|
---
|
|
|
|
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
|
|
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
|
|
@@ -29,7 +29,7 @@
|
|
#define MTK_TX_DMA_BUF_LEN_V2 0xffff
|
|
#define MTK_DMA_SIZE 512
|
|
#define MTK_MAC_COUNT 2
|
|
-#define MTK_RX_ETH_HLEN (ETH_HLEN + ETH_FCS_LEN)
|
|
+#define MTK_RX_ETH_HLEN (VLAN_ETH_HLEN + ETH_FCS_LEN)
|
|
#define MTK_RX_HLEN (NET_SKB_PAD + MTK_RX_ETH_HLEN + NET_IP_ALIGN)
|
|
#define MTK_DMA_DUMMY_DESC 0xffffffff
|
|
#define MTK_DEFAULT_MSG_ENABLE (NETIF_MSG_DRV | \
|