[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251116202717.1542829-1-edumazet@google.com>
Date: Sun, 16 Nov 2025 20:27:14 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Simon Horman <horms@...nel.org>, Kuniyuki Iwashima <kuniyu@...gle.com>,
Jason Xing <kerneljasonxing@...il.com>, netdev@...r.kernel.org, eric.dumazet@...il.com,
Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH v3 net-next 0/3] net: expand napi_skb_cache use
This is a followup of commit e20dfbad8aab ("net: fix napi_consume_skb()
with alien skbs").
Now the per-cpu napi_skb_cache is populated from TX completion path,
we can make use of this cache, especially for cpus not used
from a driver NAPI poll (primary user of napi_cache).
With this series, I consistently reach 130 Mpps on my UDP tx stress test
and reduce SLUB spinlock contention to smaller values.
v3: Addressed Jason feedback on patch 2/3
v2: https://lore.kernel.org/netdev/20251114121243.3519133-1-edumazet@google.com/
Eric Dumazet (3):
net: add a new @alloc parameter to napi_skb_cache_get()
net: __alloc_skb() cleanup
net: use napi_skb_cache even in process context
net/core/skbuff.c | 48 ++++++++++++++++++++++++++++++-----------------
1 file changed, 31 insertions(+), 17 deletions(-)
--
2.52.0.rc1.455.g30608eb744-goog
Powered by blists - more mailing lists