Re: [PATCH net-next v8 3/5] page_pool: rename __page_pool_alloc_pages_slow() to __page_pool_alloc_netmems_slow()

From
Ilias Apalodimas <ilias.apalodimas@linaro.org>
Date
2025-07-08 11:39:54
Also in
bpf, linux-mm, linux-rdma, lkml
Reply to
Byungchul Park, 2025-07-02
On Wed, 2 Jul 2025 at 08:33, Byungchul Park [off-list ref] wrote:
Now that __page_pool_alloc_pages_slow() is for allocating netmem, not
struct page, rename it to __page_pool_alloc_netmems_slow() to reflect
what it does.

Signed-off-by: Byungchul Park <byungchul@sk.com>
Reviewed-by: Mina Almasry <redacted>
Reviewed-by: Toke Høiland-Jørgensen <redacted>
---
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
quoted hunk ↗ jump to hunk
 net/core/page_pool.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index 95ffa48c7c67..05e2e22a8f7c 100644
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -544,8 +544,8 @@ static struct page *__page_pool_alloc_page_order(struct page_pool *pool,
 }

 /* slow path */
-static noinline netmem_ref __page_pool_alloc_pages_slow(struct page_pool *pool,
-                                                       gfp_t gfp)
+static noinline netmem_ref __page_pool_alloc_netmems_slow(struct page_pool *pool,
+                                                         gfp_t gfp)
 {
        const int bulk = PP_ALLOC_CACHE_REFILL;
        unsigned int pp_order = pool->p.order;
@@ -615,7 +615,7 @@ netmem_ref page_pool_alloc_netmems(struct page_pool *pool, gfp_t gfp)
        if (static_branch_unlikely(&page_pool_mem_providers) && pool->mp_ops)
                netmem = pool->mp_ops->alloc_netmems(pool, gfp);
        else
-               netmem = __page_pool_alloc_pages_slow(pool, gfp);
+               netmem = __page_pool_alloc_netmems_slow(pool, gfp);
        return netmem;
 }
 EXPORT_SYMBOL(page_pool_alloc_netmems);
--
2.17.1
Thread (10 messages) 10 messages, 4 authors, last reply 2025-07-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help