summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/vhost_user.api
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2017-03-08 00:23:13 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-08 18:11:04 +0000
commita1a0901daa6f56039caecbe58e7d7062a145fc98 (patch)
treea48779fe1982a856a5fce36e05489bac1827f1cf /src/vnet/devices/virtio/vhost_user.api
parentc6ec8f39240a166a7e04a7834a28107b6353b46a (diff)
vhost: binary API changes for interrupt mode
Add operation_mode for create_vhost_user_if, modify_vhost_user_if, and sw_interface_vhost_user_details. Only polling mode is supported for these APIs. Other mode is rejected and gets VNET_API_ERROR_UNIMPLEMENTED error. Change-Id: I0596f4e2c087aa2b6f78eb3e0b63910b1859641e Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/vhost_user.api')
-rw-r--r--src/vnet/devices/virtio/vhost_user.api6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/vhost_user.api b/src/vnet/devices/virtio/vhost_user.api
index 21e42298361..4f604e45494 100644
--- a/src/vnet/devices/virtio/vhost_user.api
+++ b/src/vnet/devices/virtio/vhost_user.api
@@ -19,6 +19,7 @@
@param sock_filename - unix socket filename, used to speak with frontend
@param use_custom_mac - enable or disable the use of the provided hardware address
@param mac_address - hardware address to use if 'use_custom_mac' is set
+ @param operation_mode - polling=0, interrupt=1, or adaptive=2
*/
define create_vhost_user_if
{
@@ -31,6 +32,7 @@ define create_vhost_user_if
u8 use_custom_mac;
u8 mac_address[6];
u8 tag[64];
+ u8 operation_mode;
};
/** \brief vhost-user interface create response
@@ -49,6 +51,7 @@ define create_vhost_user_if_reply
@param client_index - opaque cookie to identify the sender
@param is_server - our side is socket server
@param sock_filename - unix socket filename, used to speak with frontend
+ @param operation_mode - polling=0, interrupt=1, or adaptive=2
*/
define modify_vhost_user_if
{
@@ -59,6 +62,7 @@ define modify_vhost_user_if
u8 sock_filename[256];
u8 renumber;
u32 custom_dev_instance;
+ u8 operation_mode;
};
/** \brief vhost-user interface modify response
@@ -99,6 +103,7 @@ define delete_vhost_user_if_reply
@param is_server - vhost-user server socket
@param sock_filename - socket filename
@param num_regions - number of used memory regions
+ @param operation_mode - polling=0, interrupt=1, or adaptive=2
*/
define sw_interface_vhost_user_details
{
@@ -111,6 +116,7 @@ define sw_interface_vhost_user_details
u8 sock_filename[256];
u32 num_regions;
i32 sock_errno;
+ u8 operation_mode;
};
define sw_interface_vhost_user_dump