62c38c7137f725c2933168be038bec2b2c6de634
[openwrt/staging/stintel.git] /
1 From 38a7eb76220731eff40602cf433f24880be0a6c2 Mon Sep 17 00:00:00 2001
2 From: Lorenzo Bianconi <lorenzo@kernel.org>
3 Date: Thu, 27 Jul 2023 09:02:26 +0200
4 Subject: [PATCH 106/250] net: ethernet: mtk_eth_soc: enable page_pool support
5 for MT7988 SoC
6
7 In order to recycle pages, enable page_pool allocator for MT7988 SoC.
8
9 Tested-by: Daniel Golle <daniel@makrotopia.org>
10 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
11 Link: https://lore.kernel.org/r/fd4e8693980e47385a543e7b002eec0b88bd09df.1690440675.git.lorenzo@kernel.org
12 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
13 ---
14 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
18 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
19 @@ -1659,7 +1659,7 @@ static void mtk_update_rx_cpu_idx(struct
20
21 static bool mtk_page_pool_enabled(struct mtk_eth *eth)
22 {
23 - return eth->soc->version == 2;
24 + return mtk_is_netsys_v2_or_greater(eth);
25 }
26
27 static struct page_pool *mtk_create_page_pool(struct mtk_eth *eth,