FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
vhost_user.api
Go to the documentation of this file.
1 /*
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:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
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.
14  */
15 
16 option version = "4.1.1";
17 
18 import "vnet/interface_types.api";
19 import "vnet/ethernet/ethernet_types.api";
20 import "vnet/devices/virtio/virtio_types.api";
21 
22 /** \brief vhost-user interface create request
23  @param client_index - opaque cookie to identify the sender
24  @param is_server - our side is socket server
25  @param sock_filename - unix socket filename, used to speak with frontend
26  @param use_custom_mac - enable or disable the use of the provided hardware address
27  @param disable_mrg_rxbuf - disable the use of merge receive buffers
28  @param disable_indirect_desc - disable the use of indirect descriptors which driver can use
29  @param enable_gso - enable gso support (default 0)
30  @param enable_packed - enable packed ring support (default 0)
31  @param mac_address - hardware address to use if 'use_custom_mac' is set
32 */
33 define create_vhost_user_if
34 {
35  option deprecated;
38  bool is_server;
39  string sock_filename[256];
40  bool renumber;
43  bool enable_gso;
47  vl_api_mac_address_t mac_address;
48  string tag[64];
49 };
50 
51 /** \brief vhost-user interface create response
52  @param context - sender context, to match reply w/ request
53  @param retval - return code for the request
54  @param sw_if_index - interface the operation is applied to
55 */
56 define create_vhost_user_if_reply
57 {
58  option deprecated;
61  vl_api_interface_index_t sw_if_index;
62 };
63 
64 /** \brief vhost-user interface modify request
65  @param client_index - opaque cookie to identify the sender
66  @param is_server - our side is socket server
67  @param sock_filename - unix socket filename, used to speak with frontend
68  @param enable_gso - enable gso support (default 0)
69  @param enable_packed - enable packed ring support (default 0)
70 */
71 autoreply define modify_vhost_user_if
72 {
73  option deprecated;
76  vl_api_interface_index_t sw_if_index;
77  bool is_server;
78  string sock_filename[256];
79  bool renumber;
80  bool enable_gso;
83 };
84 
85 /** \brief vhost-user interface create request
86  @param client_index - opaque cookie to identify the sender
87  @param is_server - our side is socket server
88  @param sock_filename - unix socket filename, used to speak with frontend
89  @param use_custom_mac - enable or disable the use of the provided hardware address
90  @param disable_mrg_rxbuf - disable the use of merge receive buffers
91  @param disable_indirect_desc - disable the use of indirect descriptors which driver can use
92  @param enable_gso - enable gso support (default 0)
93  @param enable_packed - enable packed ring support (default 0)
94  @param enable_event_idx - enable event_idx support (default 0)
95  @param mac_address - hardware address to use if 'use_custom_mac' is set
96  @param renumber - if true, use custom_dev_instance is valid
97  @param custom_dev_instance - custom device instance number
98 */
99 define create_vhost_user_if_v2
100 {
103  bool is_server;
104  string sock_filename[256];
105  bool renumber;
113  vl_api_mac_address_t mac_address;
114  string tag[64];
115 };
116 
117 /** \brief vhost-user interface create response
118  @param context - sender context, to match reply w/ request
119  @param retval - return code for the request
120  @param sw_if_index - interface the operation is applied to
121 */
122 define create_vhost_user_if_v2_reply
123 {
126  vl_api_interface_index_t sw_if_index;
127 };
128 
129 /** \brief vhost-user interface modify request
130  @param client_index - opaque cookie to identify the sender
131  @param is_server - our side is socket server
132  @param sock_filename - unix socket filename, used to speak with frontend
133  @param enable_gso - enable gso support (default 0)
134  @param enable_packed - enable packed ring support (default 0)
135  @param enable_event_idx - enable event idx support (default 0)
136  @param renumber - if true, use custom_dev_instance is valid
137  @param custom_dev_instance - custom device instance number
138 */
139 autoreply define modify_vhost_user_if_v2
140 {
143  vl_api_interface_index_t sw_if_index;
144  bool is_server;
145  string sock_filename[256];
146  bool renumber;
151 };
152 
153 /** \brief vhost-user interface delete request
154  @param client_index - opaque cookie to identify the sender
155 */
156 autoreply define delete_vhost_user_if
157 {
160  vl_api_interface_index_t sw_if_index;
161 };
162 
163 /** \brief Vhost-user interface details structure (fix this)
164  @param sw_if_index - index of the interface
165  @param interface_name - name of interface
166  @param virtio_net_hdr_sz - net header size
167  @param features_first_32 - interface features, first 32 bits
168  @param features_last_32 - interface features, last 32 bits
169  @param is_server - vhost-user server socket
170  @param sock_filename - socket filename
171  @param num_regions - number of used memory regions
172  @param sock_errno - socket errno
173 */
174 define sw_interface_vhost_user_details
175 {
177  vl_api_interface_index_t sw_if_index;
178  string interface_name[64];
180  vl_api_virtio_net_features_first_32_t features_first_32;
181  vl_api_virtio_net_features_last_32_t features_last_32;
182  bool is_server;
183  string sock_filename[256];
186 };
187 
188 /** \brief Vhost-user interface dump request
189  @param sw_if_index - filter by sw_if_index
190 */
191 define sw_interface_vhost_user_dump
192 {
195  vl_api_interface_index_t sw_if_index [default=0xffffffff];
196 };
197 /*
198  * Local Variables:
199  * eval: (c-set-style "gnu")
200  * End:
201  */
vl_api_modify_vhost_user_if_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:76
vl_api_sw_interface_vhost_user_details_t::num_regions
u32 num_regions
Definition: vhost_user.api:184
vl_api_create_vhost_user_if_v2_t::client_index
u32 client_index
Definition: vhost_user.api:101
vl_api_modify_vhost_user_if_t::enable_gso
bool enable_gso
Definition: vhost_user.api:80
vl_api_delete_vhost_user_if_t::context
u32 context
Definition: vhost_user.api:159
vl_api_create_vhost_user_if_v2_t
vhost-user interface create request
Definition: vhost_user.api:99
vl_api_sw_interface_vhost_user_dump_t::client_index
u32 client_index
Definition: vhost_user.api:193
vl_api_create_vhost_user_if_v2_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:126
vl_api_create_vhost_user_if_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:61
vl_api_create_vhost_user_if_reply_t
vhost-user interface create response
Definition: vhost_user.api:56
vl_api_create_vhost_user_if_reply_t::context
u32 context
Definition: vhost_user.api:59
vl_api_create_vhost_user_if_t::context
u32 context
Definition: vhost_user.api:37
vl_api_sw_interface_vhost_user_details_t::features_last_32
vl_api_virtio_net_features_last_32_t features_last_32
Definition: vhost_user.api:181
vl_api_create_vhost_user_if_t::disable_mrg_rxbuf
bool disable_mrg_rxbuf
Definition: vhost_user.api:41
vl_api_sw_interface_vhost_user_details_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:183
vl_api_create_vhost_user_if_v2_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:111
vl_api_create_vhost_user_if_t::is_server
bool is_server
Definition: vhost_user.api:38
vl_api_modify_vhost_user_if_v2_t::context
u32 context
Definition: vhost_user.api:142
vl_api_create_vhost_user_if_v2_t::renumber
bool renumber
Definition: vhost_user.api:105
vl_api_create_vhost_user_if_v2_t::disable_mrg_rxbuf
bool disable_mrg_rxbuf
Definition: vhost_user.api:106
vl_api_modify_vhost_user_if_v2_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:143
vl_api_sw_interface_vhost_user_details_t::sock_errno
i32 sock_errno
Definition: vhost_user.api:185
vl_api_modify_vhost_user_if_v2_t::client_index
u32 client_index
Definition: vhost_user.api:141
vl_api_modify_vhost_user_if_t::is_server
bool is_server
Definition: vhost_user.api:77
vl_api_modify_vhost_user_if_v2_t
vhost-user interface modify request
Definition: vhost_user.api:139
vl_api_modify_vhost_user_if_t::deprecated
option deprecated
Definition: vhost_user.api:73
vl_api_modify_vhost_user_if_v2_t::enable_packed
bool enable_packed
Definition: vhost_user.api:148
vl_api_sw_interface_vhost_user_details_t::interface_name
string interface_name[64]
Definition: vhost_user.api:178
vl_api_create_vhost_user_if_reply_t::deprecated
option deprecated
Definition: vhost_user.api:58
vl_api_create_vhost_user_if_v2_t::is_server
bool is_server
Definition: vhost_user.api:103
vl_api_create_vhost_user_if_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:45
vl_api_create_vhost_user_if_v2_t::context
u32 context
Definition: vhost_user.api:102
i32
signed int i32
Definition: types.h:77
vl_api_modify_vhost_user_if_t
vhost-user interface modify request
Definition: vhost_user.api:71
vl_api_sw_interface_vhost_user_details_t::is_server
bool is_server
Definition: vhost_user.api:182
vl_api_create_vhost_user_if_v2_t::enable_event_idx
bool enable_event_idx
Definition: vhost_user.api:110
vl_api_modify_vhost_user_if_t::client_index
u32 client_index
Definition: vhost_user.api:74
vl_api_sw_interface_vhost_user_details_t::virtio_net_hdr_sz
u32 virtio_net_hdr_sz
Definition: vhost_user.api:179
vl_api_delete_vhost_user_if_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:160
vl_api_create_vhost_user_if_t::use_custom_mac
bool use_custom_mac
Definition: vhost_user.api:46
vl_api_modify_vhost_user_if_v2_t::is_server
bool is_server
Definition: vhost_user.api:144
vl_api_sw_interface_vhost_user_details_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: vhost_user.api:177
vl_api_sw_interface_vhost_user_details_t::features_first_32
vl_api_virtio_net_features_first_32_t features_first_32
Definition: vhost_user.api:180
vl_api_create_vhost_user_if_t::tag
string tag[64]
Definition: vhost_user.api:48
vl_api_modify_vhost_user_if_t::renumber
bool renumber
Definition: vhost_user.api:79
vl_api_create_vhost_user_if_v2_reply_t::context
u32 context
Definition: vhost_user.api:124
vl_api_create_vhost_user_if_v2_t::mac_address
vl_api_mac_address_t mac_address
Definition: vhost_user.api:113
vl_api_create_vhost_user_if_t::client_index
u32 client_index
Definition: vhost_user.api:36
vl_api_create_vhost_user_if_t::disable_indirect_desc
bool disable_indirect_desc
Definition: vhost_user.api:42
vl_api_delete_vhost_user_if_t::client_index
u32 client_index
Definition: vhost_user.api:158
vl_api_modify_vhost_user_if_t::context
u32 context
Definition: vhost_user.api:75
vl_api_create_vhost_user_if_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:39
vl_api_create_vhost_user_if_t::enable_gso
bool enable_gso
Definition: vhost_user.api:43
vl_api_create_vhost_user_if_t::deprecated
option deprecated
Definition: vhost_user.api:35
vl_api_create_vhost_user_if_v2_t::enable_gso
bool enable_gso
Definition: vhost_user.api:108
vl_api_modify_vhost_user_if_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:82
vl_api_create_vhost_user_if_v2_t::enable_packed
bool enable_packed
Definition: vhost_user.api:109
vl_api_create_vhost_user_if_t::renumber
bool renumber
Definition: vhost_user.api:40
vl_api_create_vhost_user_if_v2_reply_t::retval
i32 retval
Definition: vhost_user.api:125
vl_api_create_vhost_user_if_v2_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:104
vl_api_modify_vhost_user_if_v2_t::enable_event_idx
bool enable_event_idx
Definition: vhost_user.api:149
vl_api_modify_vhost_user_if_v2_t::renumber
bool renumber
Definition: vhost_user.api:146
vl_api_create_vhost_user_if_t::enable_packed
bool enable_packed
Definition: vhost_user.api:44
vl_api_modify_vhost_user_if_v2_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:145
u32
unsigned int u32
Definition: types.h:88
vl_api_modify_vhost_user_if_t::sock_filename
string sock_filename[256]
Definition: vhost_user.api:78
vl_api_sw_interface_vhost_user_dump_t::context
u32 context
Definition: vhost_user.api:194
vl_api_modify_vhost_user_if_v2_t::custom_dev_instance
u32 custom_dev_instance
Definition: vhost_user.api:150
vl_api_modify_vhost_user_if_t::enable_packed
bool enable_packed
Definition: vhost_user.api:81
vl_api_create_vhost_user_if_v2_t::disable_indirect_desc
bool disable_indirect_desc
Definition: vhost_user.api:107
vl_api_delete_vhost_user_if_t
vhost-user interface delete request
Definition: vhost_user.api:156
vl_api_create_vhost_user_if_t
vhost-user interface create request
Definition: vhost_user.api:33
vl_api_create_vhost_user_if_t::mac_address
vl_api_mac_address_t mac_address
Definition: vhost_user.api:47
vl_api_sw_interface_vhost_user_details_t
Vhost-user interface details structure (fix this)
Definition: vhost_user.api:174
vl_api_modify_vhost_user_if_v2_t::enable_gso
bool enable_gso
Definition: vhost_user.api:147
vl_api_create_vhost_user_if_v2_reply_t
vhost-user interface create response
Definition: vhost_user.api:122
vl_api_sw_interface_vhost_user_dump_t
Vhost-user interface dump request.
Definition: vhost_user.api:191
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: wireguard.api:34
vl_api_create_vhost_user_if_v2_t::use_custom_mac
bool use_custom_mac
Definition: vhost_user.api:112
version
option version
Definition: vhost_user.api:16
vl_api_sw_interface_vhost_user_details_t::context
u32 context
Definition: vhost_user.api:176
vl_api_sw_interface_vhost_user_dump_t::sw_if_index
vl_api_interface_index_t sw_if_index[default=0xffffffff]
Definition: vhost_user.api:195
vl_api_create_vhost_user_if_v2_t::tag
string tag[64]
Definition: vhost_user.api:114
vl_api_create_vhost_user_if_reply_t::retval
i32 retval
Definition: vhost_user.api:60