net: do not consume a cacheline for system_page_pool
Subsystems (2)
PATCH 1/1 net: do not consume a cacheline for system_page_pool
There is no reason to consume a full cacheline to store system_page_pool.
We can eventually move it to softnet_data later for full locality control.
Fixes 2b0cfa6e4956 ("net: add generic percpu page_pool allocator")
Signed-off-by Eric Dumazet <[email protected]>
Cc Lorenzo Bianconi <[email protected]>
Cc Jesper Dangaard Brouer <[email protected]>
Cc Toke Høiland-Jørgensen <[email protected]>
--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
@@ -429,7 +429,7 @@ EXPORT_PER_CPU_SYMBOL(softnet_data);* PP consumers must pay attention to run APIs in the appropriate context * (e.g. NAPI context). */ -static DEFINE_PER_CPU_ALIGNED(struct page_pool *, system_page_pool); +static DEFINE_PER_CPU(struct page_pool *, system_page_pool);#ifdef CONFIG_LOCKDEP /*
Signature · 1 line
2.44.0.478.gd926399ef9-goog
Quoted 4 lines · Eric Dumazet
There is no reason to consume a full cacheline to store
system_page_pool.We can eventually move it to
softnet_datalater for full locality control.
Quoted 8 lines
Fixes 2b0cfa6e4956 ("net: add generic percpu page_pool allocator")Signed-off-by Eric Dumazet <[email protected]>Cc Lorenzo Bianconi <[email protected]>Cc Jesper Dangaard Brouer <[email protected]>Cc Toke Høiland-Jørgensen <[email protected]>--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines
net/core/dev.c +1
-1@@ -429,7 +429,7 @@ EXPORT_PER_CPU_SYMBOL(softnet_data);* PP consumers must pay attention to run APIs in the appropriate context * (e.g. NAPI context). */ -static DEFINE_PER_CPU_ALIGNED(struct page_pool *, system_page_pool); +static DEFINE_PER_CPU(struct page_pool *, system_page_pool);#ifdef CONFIG_LOCKDEP /*
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 11 lines · On Thu, 28 Mar 2024 17:34:48 +0000 you wrote:
There is no reason to consume a full cacheline to store
system_page_pool.We can eventually move it to
softnet_datalater for full locality control.Fixes 2b0cfa6e4956 ("net: add generic percpu page_pool allocator")Signed-off-by Eric Dumazet <[email protected]>Cc Lorenzo Bianconi <[email protected]>Cc Jesper Dangaard Brouer <[email protected]>Cc Toke Høiland-Jørgensen <[email protected]>[...]
Here is the summary with links:
- [net] net: do not consume a cacheline for system_page_pool
https://git.kernel.org/netdev/net/c/5086f0fe46dc
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html