[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251125085431.4039-1-kerneljasonxing@gmail.com>
Date: Tue, 25 Nov 2025 16:54:28 +0800
From: Jason Xing <kerneljasonxing@...il.com>
To: davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
bjorn@...nel.org,
magnus.karlsson@...el.com,
maciej.fijalkowski@...el.com,
jonathan.lemon@...il.com,
sdf@...ichev.me,
ast@...nel.org,
daniel@...earbox.net,
hawk@...nel.org,
john.fastabend@...il.com
Cc: bpf@...r.kernel.org,
netdev@...r.kernel.org,
Jason Xing <kernelxing@...cent.com>
Subject: [PATCH net-next v2 0/3] xsk: introduce atomic for cq in generic path
From: Jason Xing <kernelxing@...cent.com>
In the hot path (that is __xsk_generic_xmit()), playing with spin lock
is time consuming. So this series replaces spin lock with atomic
operations to get better performance.
---
V2
Link: https://lore.kernel.org/all/20251124080858.89593-1-kerneljasonxing@gmail.com/
1. use separate functions rather than branches within shared routines. (Maciej)
2. make each patch as simple as possible for easier review
Jason Xing (3):
xsk: add atomic cached_prod for copy mode
xsk: use atomic operations around cached_prod for copy mode
xsk: remove spin lock protection of cached_prod
include/net/xsk_buff_pool.h | 5 -----
net/xdp/xsk.c | 23 +++++------------------
net/xdp/xsk_buff_pool.c | 1 -
net/xdp/xsk_queue.h | 27 +++++++++++++++++++++++----
4 files changed, 28 insertions(+), 28 deletions(-)
--
2.41.3
Powered by blists - more mailing lists