summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-07-19 18:04:08 -0700
committerJakub Kicinski <kuba@kernel.org>2023-07-21 18:50:18 -0700
commit535b9c61bdef6017228c708128b7849a476f8da5 (patch)
tree189831a0758ed31960c1b97cf18f8f09e84d7a30 /net
parent98e2727c79d007d99a026eb66f481908e66af263 (diff)
downloadlinux-stable-535b9c61bdef6017228c708128b7849a476f8da5.tar.gz
linux-stable-535b9c61bdef6017228c708128b7849a476f8da5.tar.bz2
linux-stable-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/20230720010409.1967072-4-kuba@kernel.org Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-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)