aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/page_pool.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2023-07-20 01:04:08 +0000
committerJakub Kicinski <[email protected]>2023-07-22 01:50:18 +0000
commit535b9c61bdef6017228c708128b7849a476f8da5 (patch)
tree189831a0758ed31960c1b97cf18f8f09e84d7a30 /net/core/page_pool.c
parenteth: stmmac: let page recycling happen with skbs (diff)
downloadkernel-535b9c61bdef6017228c708128b7849a476f8da5.tar.gz
kernel-535b9c61bdef6017228c708128b7849a476f8da5.zip
net: page_pool: hide page_pool_release_page()
There seems to be no user calling page_pool_release_page() for legit reasons, all the users simply haven't been converted to skb-based recycling, yet. Previous changes converted them. Update the docs, and unexport the function. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Alexander Lobakin <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/page_pool.c')
-rw-r--r--net/core/page_pool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index a3e12a61d456..2c7cf5f2bcb8 100644
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -492,7 +492,7 @@ static s32 page_pool_inflight(struct page_pool *pool)
* a regular page (that will eventually be returned to the normal
* page-allocator via put_page).
*/
-void page_pool_release_page(struct page_pool *pool, struct page *page)
+static void page_pool_release_page(struct page_pool *pool, struct page *page)
{
dma_addr_t dma;
int count;
@@ -519,7 +519,6 @@ skip_dma_unmap:
count = atomic_inc_return_relaxed(&pool->pages_state_release_cnt);
trace_page_pool_state_release(pool, page, count);
}
-EXPORT_SYMBOL(page_pool_release_page);
/* Return a page to the page allocator, cleaning up our state */
static void page_pool_return_page(struct page_pool *pool, struct page *page)