Message ID | fd4e8693980e47385a543e7b002eec0b88bd09df.1690440675.git.lorenzo@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 58ea461b690cb093ef3f502e51adbb03d2ea61d8 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] net: ethernet: mtk_eth_soc: enable page_pool support for MT7988 SoC | expand |
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!
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,