vhost_net: basic polling support
authorJason Wang <jasowang@redhat.com>
Fri, 4 Mar 2016 11:24:53 +0000 (06:24 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 11 Mar 2016 00:18:53 +0000 (02:18 +0200)
commit0308813724606549436d30efd877a80c8e00790e
tree9ce96f57528d75f21df24831ad35fca9fdc7a4d4
parentd4a60603fa0b42012decfa058dfa44cffde7a10c
vhost_net: basic polling support

This patch tries to poll for new added tx buffer or socket receive
queue for a while at the end of tx/rx processing. The maximum time
spent on polling were specified through a new kind of vring ioctl.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/net.c
drivers/vhost/vhost.c
drivers/vhost/vhost.h
include/uapi/linux/vhost.h