aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/vhost-user.h
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2017-07-29 08:56:08 -0700
committerFlorin Coras <florin.coras@gmail.com>2017-08-31 20:48:25 +0000
commit49a04b9545de22beaef5218d3985896d6ba37982 (patch)
tree70a6ae5a630820f47254ba70a36286771774b45c /src/vnet/devices/virtio/vhost-user.h
parentda78c85c5504f0a429d1feb57b6789254f60177d (diff)
vhost: Disallow interrupt mode config if driver opts out interrupt support
According to the spec, supporting interrupt mode from the driver is optional, not a must. When interrupt mode is configured on the interface, we should check to make sure that the driver didn't opt out for the kickfd support and reject the configuration if it did. Change-Id: I7d3dbaddde65458e1a6a802754a3768ae8685a0e Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/vhost-user.h')
-rw-r--r--src/vnet/devices/virtio/vhost-user.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/vhost-user.h b/src/vnet/devices/virtio/vhost-user.h
index ad6c4219706..ae3b88e8927 100644
--- a/src/vnet/devices/virtio/vhost-user.h
+++ b/src/vnet/devices/virtio/vhost-user.h
@@ -23,6 +23,7 @@
#define VHOST_VRING_IDX_RX(qid) (2*qid)
#define VHOST_VRING_IDX_TX(qid) (2*qid + 1)
+#define VHOST_USER_VRING_NOFD_MASK 0x100
#define VIRTQ_DESC_F_NEXT 1
#define VIRTQ_DESC_F_INDIRECT 4
#define VHOST_USER_REPLY_MASK (0x1 << 2)