blob: 9b057552c00bb1b2fa2b043b977493d3fcb164a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/*
* Copyright (c) 2015-2016 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
option version = "4.0.0";
import "vnet/interface_types.api";
import "vnet/ethernet/ethernet_types.api";
import "vnet/devices/virtio/virtio_types.api";
/** \brief vhost-user interface create request
@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 use_custom_mac - enable or disable the use of the provided hardware address
@param disable_mrg_rxbuf - disable the use of merge receive buffers
@param disable_indirect_desc - disable the use of indirect descriptors which driver can use
@param enable_gso - enable gso support (default 0)
@param mac_address - hardware address to use if 'use_custom_mac' is set
*/
define create_vhost_user_if
{
u32 client_index;
u32 context;
bool is_server;
string sock_filename[256];
bool renumber;
bool disable_mrg_rxbuf;
bool disable_indirect_desc;
bool enable_gso;
u32 custom_dev_instance;
bool use_custom_mac;
vl_api_mac_address_t mac_address;
string tag[64];
};
/** \brief vhost-user interface create response
@param context - sender context, to match reply w/ request
@param retval - return code for the request
@param sw_if_index - interface the operation is applied to
*/
define create_vhost_user_if_reply
{
u32 context;
i32 retval;
vl_api_interface_index_t sw_if_index;
};
/** \brief vhost-user interface modify request
@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 enable_gso - enable gso support (default 0)
*/
autoreply define modify_vhost_user_if
{
u32 client_index;
u32 context;
vl_api_interface_index_t sw_if_index;
bool is_server;
string sock_filename[256];
bool renumber;
bool enable_gso;
u32 custom_dev_instance;
};
/** \brief vhost-user interface delete request
@param client_index - opaque cookie to identify the sender
*/
autoreply define delete_vhost_user_if
{
u32 client_index;
u32 context;
vl_api_interface_index_t sw_if_index;
};
/** \brief Vhost-user interface details structure (fix this)
@param sw_if_index - index of the interface
@param interface_name - name of interface
@param virtio_net_hdr_sz - net header size
@param features_first_32 - interface features, first 32 bits
@param features_last_32 - interface features, last 32 bits
@param is_server - vhost-user server socket
@param sock_filename - socket filename
@param num_regions - number of used memory regions
@param sock_errno - socket errno
*/
define sw_interface_vhost_user_details
{
u32 context;
vl_api_interface_index_t sw_if_index;
string interface_name[64];
u32 virtio_net_hdr_sz;
vl_api_virtio_net_features_first_32_t features_first_32;
vl_api_virtio_net_features_last_32_t features_last_32;
bool is_server;
string sock_filename[256];
u32 num_regions;
i32 sock_errno;
};
/** \brief Vhost-user interface dump request
@param sw_if_index - filter by sw_if_index UNIMPLEMENTED
*/
define sw_interface_vhost_user_dump
{
u32 client_index;
u32 context;
vl_api_interface_index_t sw_if_index [default=0xffffffff];
};
/*
* Local Variables:
* eval: (c-set-style "gnu")
* End:
*/
|