1 From 5e69163d3b9931098922b3fc2f8e786af8c1f37e Mon Sep 17 00:00:00 2001
2 From: Lorenzo Bianconi <lorenzo@kernel.org>
3 Date: Tue, 13 Sep 2022 15:03:05 +0200
4 Subject: [PATCH] net: ethernet: mtk_eth_soc: enable XDP support just for
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 Disable page_pool/XDP support for MT7621 SoC in order fix a regression
11 introduce adding XDP for MT7986 SoC. There is no a real use case for XDP
12 on MT7621 since it is a low-end cpu. Moreover this patch reduces the
15 Tested-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
16 Tested-by: Arınç ÜNAL <arinc.unal@arinc9.com>
17 Fixes: 23233e577ef9 ("net: ethernet: mtk_eth_soc: rely on page_pool for single page buffers")
18 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
19 Link: https://lore.kernel.org/r/2bf31e27b888c43228b0d84dd2ef5033338269e2.1663074002.git.lorenzo@kernel.org
20 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
22 drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
25 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
26 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
27 @@ -1413,7 +1413,7 @@ static void mtk_update_rx_cpu_idx(struct
29 static bool mtk_page_pool_enabled(struct mtk_eth *eth)
32 + return MTK_HAS_CAPS(eth->soc->caps, MTK_NETSYS_V2);
35 static struct page_pool *mtk_create_page_pool(struct mtk_eth *eth,