d695f0fb8a6c8af6dd405c9bfe8a9015ae07e57e
[openwrt/staging/aparcar.git] /
1 From 6b4423b258b91032c50a5efca15d3d9bb194ea1d Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@nbd.name>
3 Date: Thu, 22 Apr 2021 22:21:01 -0700
4 Subject: [PATCH] net: ethernet: mtk_eth_soc: increase DMA ring sizes
5
6 256 descriptors is not enough for multi-gigabit traffic under load on
7 MT7622. Bump it to 512 to improve performance.
8
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
11 Signed-off-by: David S. Miller <davem@davemloft.net>
12 ---
13 drivers/net/ethernet/mediatek/mtk_eth_soc.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.h
17 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.h
18 @@ -21,7 +21,7 @@
19 #define MTK_QDMA_PAGE_SIZE 2048
20 #define MTK_MAX_RX_LENGTH 1536
21 #define MTK_TX_DMA_BUF_LEN 0x3fff
22 -#define MTK_DMA_SIZE 256
23 +#define MTK_DMA_SIZE 512
24 #define MTK_NAPI_WEIGHT 64
25 #define MTK_MAC_COUNT 2
26 #define MTK_RX_ETH_HLEN (VLAN_ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN)