summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/vhost.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2016-03-04 06:24:53 -0500
committerMichael S. Tsirkin <mst@redhat.com>2016-03-11 02:18:53 +0200
commit0308813724606549436d30efd877a80c8e00790e (patch)
tree9ce96f57528d75f21df24831ad35fca9fdc7a4d4 /drivers/vhost/vhost.h
parentd4a60603fa0b42012decfa058dfa44cffde7a10c (diff)
downloadop-kernel-dev-0308813724606549436d30efd877a80c8e00790e.zip
op-kernel-dev-0308813724606549436d30efd877a80c8e00790e.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h
index af5af77..d36d8be 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 {
OpenPOWER on IntegriCloud