summaryrefslogtreecommitdiffstats
path: root/include/net/page_pool
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2024-02-16 10:25:43 +0100
committerJakub Kicinski <kuba@kernel.org>2024-02-19 12:30:27 -0800
commitf853fa5c54e7a0364a52125074dedeaf2c7ddace (patch)
treea69282da8578eabf8b2c27ec1e51fb036e84ee78 /include/net/page_pool
parent56ef27e3abe6d6453b1f4f6127041f3a65d7cbc9 (diff)
downloadlinux-stable-f853fa5c54e7a0364a52125074dedeaf2c7ddace.tar.gz
linux-stable-f853fa5c54e7a0364a52125074dedeaf2c7ddace.tar.bz2
linux-stable-f853fa5c54e7a0364a52125074dedeaf2c7ddace.zip
net: page_pool: fix recycle stats for system page_pool allocator
Use global percpu page_pool_recycle_stats counter for system page_pool allocator instead of allocating a separate percpu variable for each (also percpu) page pool instance. Reviewed-by: Toke Hoiland-Jorgensen <toke@redhat.com> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Link: https://lore.kernel.org/r/87f572425e98faea3da45f76c3c68815c01a20ee.1708075412.git.lorenzo@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/page_pool')
-rw-r--r--include/net/page_pool/types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/page_pool/types.h b/include/net/page_pool/types.h
index 3590fbe6e3f1..5e43a08d3231 100644
--- a/include/net/page_pool/types.h
+++ b/include/net/page_pool/types.h
@@ -18,8 +18,9 @@
* Please note DMA-sync-for-CPU is still
* device driver responsibility
*/
-#define PP_FLAG_ALL (PP_FLAG_DMA_MAP |\
- PP_FLAG_DMA_SYNC_DEV)
+#define PP_FLAG_SYSTEM_POOL BIT(2) /* Global system page_pool */
+#define PP_FLAG_ALL (PP_FLAG_DMA_MAP | PP_FLAG_DMA_SYNC_DEV | \
+ PP_FLAG_SYSTEM_POOL)
/*
* Fast allocation side cache array/stack