diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2023-07-27 09:02:26 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-29 03:47:26 +0200 |
commit | 58ea461b690cb093ef3f502e51adbb03d2ea61d8 (patch) | |
tree | 50ecd97ff96bf7b3211008ca37f580a3bd28c4a8 /drivers/net/ethernet/mediatek | |
parent | net: bcmasp: Clean up redundant dev_err_probe() (diff) | |
download | linux-58ea461b690cb093ef3f502e51adbb03d2ea61d8.tar.xz linux-58ea461b690cb093ef3f502e51adbb03d2ea61d8.zip |
net: ethernet: mtk_eth_soc: enable page_pool support for MT7988 SoC
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>
Link: https://lore.kernel.org/r/fd4e8693980e47385a543e7b002eec0b88bd09df.1690440675.git.lorenzo@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 38f39be04eae..bd1e4921c7b4 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1674,7 +1674,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, |