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