FD.io VPP
v19.08.3-2-gbabecb413
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
=
"3.0.0"
;
17
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 enable_gso - enable gso support (default 0)
26
@param mac_address - hardware address to use if 'use_custom_mac' is set
27
*/
28
define create_vhost_user_if
29
{
30
u32
client_index
;
31
u32
context
;
32
u8
is_server
;
33
u8
sock_filename[256];
34
u8
renumber
;
35
u8
disable_mrg_rxbuf
;
36
u8
disable_indirect_desc
;
37
u8
enable_gso
;
38
u32
custom_dev_instance
;
39
u8
use_custom_mac
;
40
u8
mac_address
[6];
41
u8
tag[64];
42
};
43
44
/** \brief vhost-user interface create response
45
@param context - sender context, to match reply w/ request
46
@param retval - return code for the request
47
@param sw_if_index - interface the operation is applied to
48
*/
49
define create_vhost_user_if_reply
50
{
51
u32
context
;
52
i32
retval
;
53
u32
sw_if_index
;
54
};
55
56
/** \brief vhost-user interface modify request
57
@param client_index - opaque cookie to identify the sender
58
@param is_server - our side is socket server
59
@param sock_filename - unix socket filename, used to speak with frontend
60
@param enable_gso - enable gso support (default 0)
61
*/
62
autoreply define modify_vhost_user_if
63
{
64
u32
client_index
;
65
u32
context
;
66
u32
sw_if_index
;
67
u8
is_server
;
68
u8
sock_filename[256];
69
u8
renumber
;
70
u8
enable_gso
;
71
u32
custom_dev_instance
;
72
};
73
74
/** \brief vhost-user interface delete request
75
@param client_index - opaque cookie to identify the sender
76
*/
77
autoreply define delete_vhost_user_if
78
{
79
u32
client_index
;
80
u32
context
;
81
u32
sw_if_index
;
82
};
83
84
/** \brief Vhost-user interface details structure (fix this)
85
@param sw_if_index - index of the interface
86
@param interface_name - name of interface
87
@param virtio_net_hdr_sz - net header size
88
@param features - interface features
89
@param is_server - vhost-user server socket
90
@param sock_filename - socket filename
91
@param num_regions - number of used memory regions
92
*/
93
define sw_interface_vhost_user_details
94
{
95
u32
context
;
96
u32
sw_if_index
;
97
u8
interface_name[64];
98
u32
virtio_net_hdr_sz
;
99
u64
features
;
100
u8
is_server
;
101
u8
sock_filename[256];
102
u32
num_regions
;
103
i32
sock_errno
;
104
};
105
106
define sw_interface_vhost_user_dump
107
{
108
u32
client_index
;
109
u32
context
;
110
};
111
/*
112
* Local Variables:
113
* eval: (c-set-style "gnu")
114
* End:
115
*/
vl_api_create_vhost_user_if_t::disable_indirect_desc
u8 disable_indirect_desc
Definition:
vhost_user.api:36
vl_api_sw_interface_vhost_user_details_t::features
u64 features
Definition:
vhost_user.api:99
vl_api_create_vhost_user_if_reply_t::sw_if_index
u32 sw_if_index
Definition:
vhost_user.api:53
vl_api_modify_vhost_user_if_t::enable_gso
u8 enable_gso
Definition:
vhost_user.api:70
u64
unsigned long u64
Definition:
types.h:89
vl_api_create_vhost_user_if_t::enable_gso
u8 enable_gso
Definition:
vhost_user.api:37
vl_api_sw_interface_vhost_user_details_t::sock_errno
i32 sock_errno
Definition:
vhost_user.api:103
u8
unsigned char u8
Definition:
types.h:56
vl_api_create_vhost_user_if_t::client_index
u32 client_index
Definition:
vhost_user.api:30
vl_api_sw_interface_vhost_user_details_t::num_regions
u32 num_regions
Definition:
vhost_user.api:102
vl_api_sw_interface_vhost_user_details_t::sw_if_index
u32 sw_if_index
Definition:
vhost_user.api:96
vl_api_sw_interface_vhost_user_dump_t::context
u32 context
Definition:
vhost_user.api:109
u32
unsigned int u32
Definition:
types.h:88
version
option version
Definition:
vhost_user.api:16
vl_api_delete_vhost_user_if_t::client_index
u32 client_index
Definition:
vhost_user.api:79
vl_api_modify_vhost_user_if_t::custom_dev_instance
u32 custom_dev_instance
Definition:
vhost_user.api:71
vl_api_create_vhost_user_if_t::context
u32 context
Definition:
vhost_user.api:31
vl_api_sw_interface_vhost_user_details_t::is_server
u8 is_server
Definition:
vhost_user.api:100
vl_api_create_vhost_user_if_t::use_custom_mac
u8 use_custom_mac
Definition:
vhost_user.api:39
vl_api_modify_vhost_user_if_t::context
u32 context
Definition:
vhost_user.api:65
vl_api_modify_vhost_user_if_t::sw_if_index
u32 sw_if_index
Definition:
vhost_user.api:66
vl_api_create_vhost_user_if_t::renumber
u8 renumber
Definition:
vhost_user.api:34
i32
signed int i32
Definition:
types.h:77
vl_api_create_vhost_user_if_reply_t::context
u32 context
Definition:
vhost_user.api:51
vl_api_modify_vhost_user_if_t::client_index
u32 client_index
Definition:
vhost_user.api:64
vl_api_modify_vhost_user_if_t::is_server
u8 is_server
Definition:
vhost_user.api:67
mac_address
u8 mac_address[6]
Definition:
ethernet_types.api:17
vl_api_delete_vhost_user_if_t::sw_if_index
u32 sw_if_index
Definition:
vhost_user.api:81
vl_api_delete_vhost_user_if_t::context
u32 context
Definition:
vhost_user.api:80
vl_api_create_vhost_user_if_t::custom_dev_instance
u32 custom_dev_instance
Definition:
vhost_user.api:38
vl_api_sw_interface_vhost_user_dump_t::client_index
u32 client_index
Definition:
vhost_user.api:108
vl_api_modify_vhost_user_if_t::renumber
u8 renumber
Definition:
vhost_user.api:69
vl_api_create_vhost_user_if_t::is_server
u8 is_server
Definition:
vhost_user.api:32
vl_api_sw_interface_vhost_user_details_t::context
u32 context
Definition:
vhost_user.api:95
vl_api_create_vhost_user_if_t::disable_mrg_rxbuf
u8 disable_mrg_rxbuf
Definition:
vhost_user.api:35
vl_api_create_vhost_user_if_reply_t::retval
i32 retval
Definition:
vhost_user.api:52
vl_api_sw_interface_vhost_user_details_t::virtio_net_hdr_sz
u32 virtio_net_hdr_sz
Definition:
vhost_user.api:98
src
vnet
devices
virtio
vhost_user.api
Generated on Mon Oct 19 2020 14:04:10 for FD.io VPP by
1.8.13