Skip to content

RFC batched tx processing in vhost_net

Jason Wang kvm lkml netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 53 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vhost: split out ring head fetching logicdrivers/vhost/vhost.c drivers/vhost/vhost.h+54 -264 replies
1/5vhost: split out ring head fetching logicdrivers/vhost/vhost.c drivers/vhost/vhost.h+54 -260 replies
2/5vhost: introduce helper to prefetch desc indexdrivers/vhost/vhost.c drivers/vhost/vhost.h+58 -014 replies
2/5vhost: introduce helper to prefetch desc indexdrivers/vhost/vhost.c drivers/vhost/vhost.h+58 -00 replies
3/5vhost: introduce vhost_add_used_idx()drivers/vhost/vhost.c drivers/vhost/vhost.h+34 -012 replies
4/5vhost_net: rename VHOST_RX_BATCH to VHOST_NET_BATCHdrivers/vhost/net.c+3 -30 replies
4/5vhost_net: rename VHOST_RX_BATCH to VHOST_NET_BATCHdrivers/vhost/net.c+3 -30 replies
5/5vhost_net: basic tx virtqueue batched processingdrivers/vhost/net.c drivers/vhost/vhost.c+121 -9613 replies
5/5vhost_net: basic tx virtqueue batched processingdrivers/vhost/net.c drivers/vhost/vhost.c+121 -960 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/5
1/5
2/5
2/5
3/5R-b R-b
4/5
4/5
5/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next RFC 0/5] batched tx processing in vhost_net

Hi:

This series tries to implement basic tx batched processing. This is done by prefetching descriptor indices and update used ring in a batch. This intends to speed up used ring updating and improve the cache utilization. Test shows about ~22% improvement in tx pss.

Please review.

Jason Wang (5):
vhost: split out ring head fetching logic
vhost: introduce helper to prefetch desc index
vhost: introduce vhost_add_used_idx()
vhost_net: rename VHOST_RX_BATCH to VHOST_NET_BATCH
vhost_net: basic tx virtqueue batched processing

 drivers/vhost/net.c   | 221 ++++++++++++++++++++++++++++----------------------
 drivers/vhost/vhost.c | 165 +++++++++++++++++++++++++++++++------
 drivers/vhost/vhost.h |   9 ++
 3 files changed, 270 insertions(+), 125 deletions(-)
Signature · 1 line
2.7.4