* [PATCH net-next] net: ethernet: mtk_eth_soc: enable page_pool support for MT7988 SoC
@ 2023-07-27 7:02 Lorenzo Bianconi
2023-07-29 1:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Lorenzo Bianconi @ 2023-07-27 7:02 UTC (permalink / raw)
To: netdev
Cc: nbd, john, sean.wang, Mark-MC.Lee, davem, edumazet, kuba, pabeni,
lorenzo.bianconi, daniel
In order to recycle pages, enable page_pool allocator for MT7988 SoC.
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 30e3935e83f9..d6750a58a71f 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -1673,7 +1673,7 @@ static void mtk_update_rx_cpu_idx(struct mtk_eth *eth)
static bool mtk_page_pool_enabled(struct mtk_eth *eth)
{
- return eth->soc->version == 2;
+ return mtk_is_netsys_v2_or_greater(eth);
}
static struct page_pool *mtk_create_page_pool(struct mtk_eth *eth,
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net-next] net: ethernet: mtk_eth_soc: enable page_pool support for MT7988 SoC
2023-07-27 7:02 [PATCH net-next] net: ethernet: mtk_eth_soc: enable page_pool support for MT7988 SoC Lorenzo Bianconi
@ 2023-07-29 1:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-07-29 1:50 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: netdev, nbd, john, sean.wang, Mark-MC.Lee, davem, edumazet, kuba,
pabeni, lorenzo.bianconi, daniel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 27 Jul 2023 09:02:26 +0200 you wrote:
> In order to recycle pages, enable page_pool allocator for MT7988 SoC.
>
> Tested-by: Daniel Golle <daniel@makrotopia.org>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] net: ethernet: mtk_eth_soc: enable page_pool support for MT7988 SoC
https://git.kernel.org/netdev/net-next/c/58ea461b690c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-29 1:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27 7:02 [PATCH net-next] net: ethernet: mtk_eth_soc: enable page_pool support for MT7988 SoC Lorenzo Bianconi
2023-07-29 1:50 ` patchwork-bot+netdevbpf
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).