diff options
author | Jason Wang <jasowang@redhat.com> | 2016-03-04 06:24:53 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-03-11 02:18:53 +0200 |
commit | 0308813724606549436d30efd877a80c8e00790e (patch) | |
tree | 9ce96f57528d75f21df24831ad35fca9fdc7a4d4 /drivers/vhost/vhost.h | |
parent | d4a60603fa0b42012decfa058dfa44cffde7a10c (diff) | |
download | linux-stable-0308813724606549436d30efd877a80c8e00790e.tar.gz linux-stable-0308813724606549436d30efd877a80c8e00790e.tar.bz2 linux-stable-0308813724606549436d30efd877a80c8e00790e.zip |
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>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r-- | drivers/vhost/vhost.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index af5af773bf7a..d36d8beb3351 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -115,6 +115,7 @@ struct vhost_virtqueue { /* Ring endianness requested by userspace for cross-endian support. */ bool user_be; #endif + u32 busyloop_timeout; }; struct vhost_dev { |