[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250811131236.56206-1-kerneljasonxing@gmail.com>
Date: Mon, 11 Aug 2025 21:12:34 +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,
horms@...nel.org,
andrew+netdev@...n.ch
Cc: bpf@...r.kernel.org,
netdev@...r.kernel.org,
Jason Xing <kernelxing@...cent.com>
Subject: [PATCH net-next 0/2] xsk: improvement performance in copy mode
From: Jason Xing <kernelxing@...cent.com>
Like in VM using virtio_net, there are not that many machines supporting
advanced function like multi-buffer and zerocopy. Using xsk copy mode
becomes a default choice to support bypass kernel feature instead of
resorting to DPDK.
Prior to this series, zerocopy mode has a better performance than copy
mode. But now, the copy mode outperforms zc mode by 12.9%, which was
tested on ixgbe driver by means of xdpsock.
The thought behind this series is to aggregate packets in a certain
small group like GSO/GRO and then send them at one time by only grabbing
the tx queue and disable bh once.
Jason Xing (2):
xsk: introduce XDP_GENERIC_XMIT_BATCH setsockopt
xsk: support generic batch xmit in copy mode
Documentation/networking/af_xdp.rst | 9 ++
include/linux/netdevice.h | 2 +
include/net/xdp_sock.h | 2 +
include/uapi/linux/if_xdp.h | 1 +
net/core/dev.c | 18 ++++
net/xdp/xsk.c | 135 +++++++++++++++++++++++++++-
tools/include/uapi/linux/if_xdp.h | 1 +
7 files changed, 165 insertions(+), 3 deletions(-)
--
2.41.3
Powered by blists - more mailing lists