lkml.org 
[lkml]   [2017]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH net-next 0/8] vhost-net rx batching
Date
Hi all:

This series tries to implement rx batching for vhost-net. This is done
by batching the dequeuing from skb_array which was exported by
underlayer socket and pass the sbk back through msg_control to finish
userspace copying.

Tests shows at most 19% improvment on rx pps.

Please review.

Thanks

Jason Wang (8):
ptr_ring: introduce batch dequeuing
skb_array: introduce batch dequeuing
tun: export skb_array
tap: export skb_array
tun: support receiving skb through msg_control
tap: support receiving skb from msg_control
vhost_net: try batch dequing from skb array
vhost_net: use lockless peeking for skb array during busy polling

drivers/net/tap.c | 25 ++++++++++++++---
drivers/net/tun.c | 31 +++++++++++++++------
drivers/vhost/net.c | 71 +++++++++++++++++++++++++++++++++++++++++++----
include/linux/if_tap.h | 5 ++++
include/linux/if_tun.h | 5 ++++
include/linux/ptr_ring.h | 65 +++++++++++++++++++++++++++++++++++++++++++
include/linux/skb_array.h | 25 +++++++++++++++++
7 files changed, 209 insertions(+), 18 deletions(-)

--
2.7.4

\
 
 \ /
  Last update: 2017-03-21 05:12    [W:0.091 / U:11.476 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site