All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net] net: do not consume a cacheline for system_page_pool
@ 2024-03-28 17:34 Eric Dumazet
  2024-03-28 20:35 ` Jesper Dangaard Brouer
  2024-03-29 19:40 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Dumazet @ 2024-03-28 17:34 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: netdev, eric.dumazet, Eric Dumazet, Lorenzo Bianconi,
	Jesper Dangaard Brouer, Toke Høiland-Jørgensen

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 <edumazet@google.com>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: Jesper Dangaard Brouer <hawk@kernel.org>
Cc: Toke Høiland-Jørgensen <toke@redhat.com>
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 9a67003e49db87f3f92b6c6296b3e7a5ca9d9171..984ff8b9d0e1aa5646a7237a8cf0b0a21c2aa559 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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
 /*
-- 
2.44.0.478.gd926399ef9-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net] net: do not consume a cacheline for system_page_pool
  2024-03-28 17:34 [PATCH net] net: do not consume a cacheline for system_page_pool Eric Dumazet
@ 2024-03-28 20:35 ` Jesper Dangaard Brouer
  2024-03-29 19:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Jesper Dangaard Brouer @ 2024-03-28 20:35 UTC (permalink / raw)
  To: Eric Dumazet, David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: netdev, eric.dumazet, Lorenzo Bianconi, Toke Høiland-Jørgensen



On 28/03/2024 18.34, Eric Dumazet wrote:
> 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 <edumazet@google.com>
> Cc: Lorenzo Bianconi <lorenzo@kernel.org>
> Cc: Jesper Dangaard Brouer <hawk@kernel.org>
> Cc: Toke Høiland-Jørgensen <toke@redhat.com>
> ---
>   net/core/dev.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>

> 
> diff --git a/net/core/dev.c b/net/core/dev.c
> index 9a67003e49db87f3f92b6c6296b3e7a5ca9d9171..984ff8b9d0e1aa5646a7237a8cf0b0a21c2aa559 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c
> @@ -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
>   /*

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net] net: do not consume a cacheline for system_page_pool
  2024-03-28 17:34 [PATCH net] net: do not consume a cacheline for system_page_pool Eric Dumazet
  2024-03-28 20:35 ` Jesper Dangaard Brouer
@ 2024-03-29 19:40 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-29 19:40 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: davem, kuba, pabeni, netdev, eric.dumazet, lorenzo, hawk, toke

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

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_data later for full locality control.
> 
> Fixes: 2b0cfa6e4956 ("net: add generic percpu page_pool allocator")
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> Cc: Lorenzo Bianconi <lorenzo@kernel.org>
> Cc: Jesper Dangaard Brouer <hawk@kernel.org>
> Cc: Toke Høiland-Jørgensen <toke@redhat.com>
> 
> [...]

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-29 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-28 17:34 [PATCH net] net: do not consume a cacheline for system_page_pool Eric Dumazet
2024-03-28 20:35 ` Jesper Dangaard Brouer
2024-03-29 19:40 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.