2 * Copyright (c) 2015-2016 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 option version = "2.0.0";
18 /** \brief vhost-user interface create request
19 @param client_index - opaque cookie to identify the sender
20 @param is_server - our side is socket server
21 @param sock_filename - unix socket filename, used to speak with frontend
22 @param use_custom_mac - enable or disable the use of the provided hardware address
23 @param disable_mrg_rxbuf - disable the use of merge receive buffers
24 @param disable_indirect_desc - disable the use of indirect descriptors which driver can use
25 @param mac_address - hardware address to use if 'use_custom_mac' is set
27 define create_vhost_user_if
32 u8 sock_filename[256];
35 u8 disable_indirect_desc;
36 u32 custom_dev_instance;
42 /** \brief vhost-user interface create response
43 @param context - sender context, to match reply w/ request
44 @param retval - return code for the request
45 @param sw_if_index - interface the operation is applied to
47 define create_vhost_user_if_reply
54 /** \brief vhost-user interface modify request
55 @param client_index - opaque cookie to identify the sender
56 @param is_server - our side is socket server
57 @param sock_filename - unix socket filename, used to speak with frontend
59 autoreply define modify_vhost_user_if
65 u8 sock_filename[256];
67 u32 custom_dev_instance;
70 /** \brief vhost-user interface delete request
71 @param client_index - opaque cookie to identify the sender
73 autoreply define delete_vhost_user_if
80 /** \brief Vhost-user interface details structure (fix this)
81 @param sw_if_index - index of the interface
82 @param interface_name - name of interface
83 @param virtio_net_hdr_sz - net header size
84 @param features - interface features
85 @param is_server - vhost-user server socket
86 @param sock_filename - socket filename
87 @param num_regions - number of used memory regions
89 define sw_interface_vhost_user_details
93 u8 interface_name[64];
94 u32 virtio_net_hdr_sz;
97 u8 sock_filename[256];
102 define sw_interface_vhost_user_dump
109 * eval: (c-set-style "gnu")