From: Jason Xing <kernelxing@xxxxxxxxxxx> 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