netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3 1/5] net: ethernet: mtk_eth_soc: account for vlan in rx header length
@ 2022-12-30  7:31 Felix Fietkau
  2022-12-30  7:31 ` [PATCH net v3 2/5] net: ethernet: mtk_eth_soc: work around issue with sending small fragments Felix Fietkau
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Felix Fietkau @ 2022-12-30  7:31 UTC (permalink / raw)
  To: netdev, John Crispin, Sean Wang, Mark Lee, Lorenzo Bianconi,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Matthias Brugger
  Cc: Vladimir Oltean, linux-arm-kernel, linux-mediatek, linux-kernel

The network stack assumes that devices can handle an extra VLAN tag without
increasing the MTU

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.h b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
index 18a50529ce7b..877cee9bcc66 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
@@ -34,7 +34,7 @@
 #define MTK_QDMA_RING_SIZE	2048
 #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 | \
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-02-08  8:17 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-30  7:31 [PATCH net v3 1/5] net: ethernet: mtk_eth_soc: account for vlan in rx header length Felix Fietkau
2022-12-30  7:31 ` [PATCH net v3 2/5] net: ethernet: mtk_eth_soc: work around issue with sending small fragments Felix Fietkau
2022-12-30  7:31 ` [PATCH net v3 3/5] net: ethernet: mtk_eth_soc: fix flow_offload related refcount bug Felix Fietkau
2022-12-30  7:31 ` [PATCH net v3 4/5] net: ethernet: mtk_eth_soc: drop generic vlan rx offload, only use DSA untagging Felix Fietkau
2022-12-30 11:46   ` Aw: " Frank Wunderlich
2022-12-30 12:56     ` Felix Fietkau
2022-12-30 13:56       ` Aw: " Frank Wunderlich
2022-12-30 14:58         ` Felix Fietkau
2022-12-30 15:33           ` Aw: " Frank Wunderlich
2022-12-30 15:38           ` Frank Wunderlich
2022-12-30 16:13             ` Felix Fietkau
2023-01-06 12:18               ` Aw: " Frank Wunderlich
2023-01-28 17:38   ` Arınç ÜNAL
2023-02-08  7:46     ` Aw: " Frank Wunderlich
2023-02-08  8:16       ` Arınç ÜNAL
2022-12-30  7:31 ` [PATCH net v3 5/5] net: ethernet: mtk_eth_soc: ppe: fix L2 offloading with DSA untagging offload enabled Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).