diff options
| author | Byungchul Park <[email protected]> | 2025-07-02 05:32:53 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-08 01:40:09 +0000 |
| commit | 4ad125ae380bf0bd55d6e1efb492d2ad4f867030 (patch) | |
| tree | 3990ab238346aedaeccca1be512ee6e899e39841 /net/core/page_pool.c | |
| parent | page_pool: rename page_pool_return_page() to page_pool_return_netmem() (diff) | |
| download | kernel-4ad125ae380bf0bd55d6e1efb492d2ad4f867030.tar.gz kernel-4ad125ae380bf0bd55d6e1efb492d2ad4f867030.zip | |
page_pool: rename __page_pool_release_page_dma() to __page_pool_release_netmem_dma()
Now that __page_pool_release_page_dma() is for releasing netmem, not
struct page, rename it to __page_pool_release_netmem_dma() to reflect
what it does.
Signed-off-by: Byungchul Park <[email protected]>
Reviewed-by: Mina Almasry <[email protected]>
Reviewed-by: Toke Høiland-Jørgensen <[email protected]>
Reviewed-by: Pavel Begunkov <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/page_pool.c')
| -rw-r--r-- | net/core/page_pool.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/page_pool.c b/net/core/page_pool.c index 3bf25e554f96..95ffa48c7c67 100644 --- a/net/core/page_pool.c +++ b/net/core/page_pool.c @@ -673,8 +673,8 @@ void page_pool_clear_pp_info(netmem_ref netmem) netmem_set_pp(netmem, NULL); } -static __always_inline void __page_pool_release_page_dma(struct page_pool *pool, - netmem_ref netmem) +static __always_inline void __page_pool_release_netmem_dma(struct page_pool *pool, + netmem_ref netmem) { struct page *old, *page = netmem_to_page(netmem); unsigned long id; @@ -721,7 +721,7 @@ static void page_pool_return_netmem(struct page_pool *pool, netmem_ref netmem) if (static_branch_unlikely(&page_pool_mem_providers) && pool->mp_ops) put = pool->mp_ops->release_netmem(pool, netmem); else - __page_pool_release_page_dma(pool, netmem); + __page_pool_release_netmem_dma(pool, netmem); /* This may be the last page returned, releasing the pool, so * it is not safe to reference pool afterwards. @@ -1136,7 +1136,7 @@ static void page_pool_scrub(struct page_pool *pool) } xa_for_each(&pool->dma_mapped, id, ptr) - __page_pool_release_page_dma(pool, page_to_netmem(ptr)); + __page_pool_release_netmem_dma(pool, page_to_netmem((struct page *)ptr)); } /* No more consumers should exist, but producers could still |
