bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] xsk: mitigate the side effect of cq_lock
@ 2025-10-25  6:53 Jason Xing
  2025-10-25  6:53 ` [PATCH net-next 1/2] xsk: avoid using heavy lock when the pool is not shared Jason Xing
  2025-10-25  6:53 ` [PATCH net-next 2/2] xsk: use a smaller new lock for shared pool case Jason Xing
  0 siblings, 2 replies; 7+ messages in thread
From: Jason Xing @ 2025-10-25  6:53 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, bjorn, magnus.karlsson,
	maciej.fijalkowski, jonathan.lemon, sdf, ast, daniel, hawk,
	john.fastabend, horms, andrew+netdev
  Cc: bpf, netdev, Jason Xing

From: Jason Xing <kernelxing@tencent.com>

Two optimizations regarding cq_lock can yield a performance increase
because of avoiding disabling and enabling interrupts frequently.

Jason Xing (2):
  xsk: avoid using heavy lock when the pool is not shared
  xsk: use a smaller new lock for shared pool case

 include/net/xsk_buff_pool.h | 13 +++++++++----
 net/xdp/xsk.c               | 20 ++++++++++++--------
 net/xdp/xsk_buff_pool.c     |  3 ++-
 3 files changed, 23 insertions(+), 13 deletions(-)

-- 
2.41.3


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

end of thread, other threads:[~2025-10-29 23:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-25  6:53 [PATCH net-next 0/2] xsk: mitigate the side effect of cq_lock Jason Xing
2025-10-25  6:53 ` [PATCH net-next 1/2] xsk: avoid using heavy lock when the pool is not shared Jason Xing
2025-10-29  0:29   ` Jakub Kicinski
2025-10-29  1:36     ` Jason Xing
2025-10-29 15:48   ` Maciej Fijalkowski
2025-10-29 23:43     ` Jason Xing
2025-10-25  6:53 ` [PATCH net-next 2/2] xsk: use a smaller new lock for shared pool case Jason Xing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).