FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
rdma.api
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * Copyright (c) 2019 Cisco and/or its affiliates.
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *------------------------------------------------------------------
16  */
17 
18 option version = "3.0.0";
19 import "vnet/interface_types.api";
20 
22 {
26 };
27 
28 /** \brief
29  @param client_index - opaque cookie to identify the sender
30  @param context - sender context, to match reply w/ request
31  @param host_if - Linux netdev interface name
32  @param name - new rdma interface name
33  @param rxq_num - number of receive queues (optional)
34  @param rxq_size - receive queue size (optional)
35  @param txq_size - transmit queue size (optional)
36  @param mode - operation mode (optional)
37 */
38 
39 define rdma_create
40 {
41  option deprecated="21.01";
44 
45  string host_if[64];
46  string name[64];
47  u16 rxq_num [default=1];
48  u16 rxq_size [default=1024];
49  u16 txq_size [default=1024];
50  vl_api_rdma_mode_t mode [default=0];
51  option vat_help = "<host-if ifname> [name <name>] [rx-queue-size <size>] [tx-queue-size <size>] [num-rx-queues <size>] [mode <auto|ibv|dv>]";
52 };
53 
54 /** \brief
55  @param client_index - opaque cookie to identify the sender
56  @param context - sender context, to match reply w/ request
57  @param host_if - Linux netdev interface name
58  @param name - new rdma interface name
59  @param rxq_num - number of receive queues (optional)
60  @param rxq_size - receive queue size (optional)
61  @param txq_size - transmit queue size (optional)
62  @param mode - operation mode (optional)
63  @param no_multi_seg (optional) - disable chained buffer RX
64  @param max_pktlen (optional) - maximal RX packet size.
65 */
66 
67 define rdma_create_v2
68 {
69  option deprecated;
72 
73  string host_if[64];
74  string name[64];
75  u16 rxq_num [default=1];
76  u16 rxq_size [default=1024];
77  u16 txq_size [default=1024];
78  vl_api_rdma_mode_t mode [default=0];
79  bool no_multi_seg [default=0];
80  u16 max_pktlen [default=0];
81  option vat_help = "<host-if ifname> [name <name>] [rx-queue-size <size>] [tx-queue-size <size>] [num-rx-queues <size>] [mode <auto|ibv|dv>] [no-multi-seg] [max-pktlen <size>]";
82 };
83 
85 {
90 };
91 
93 {
98 };
99 
100 /** \brief
101  @param client_index - opaque cookie to identify the sender
102  @param context - sender context, to match reply w/ request
103  @param host_if - Linux netdev interface name
104  @param name - new rdma interface name
105  @param rxq_num - number of receive queues (optional)
106  @param rxq_size - receive queue size (optional)
107  @param txq_size - transmit queue size (optional)
108  @param mode - operation mode (optional)
109  @param no_multi_seg (optional) - disable chained buffer RX
110  @param max_pktlen (optional) - maximal RX packet size.
111  @param rss4 (optional) - IPv4 RSS
112  @param rss6 (optional) - IPv6 RSS
113 */
114 
115 define rdma_create_v3
116 {
119 
120  string host_if[64];
121  string name[64];
122  u16 rxq_num [default=1];
123  u16 rxq_size [default=1024];
124  u16 txq_size [default=1024];
125  vl_api_rdma_mode_t mode [default=0];
126  bool no_multi_seg [default=0];
127  u16 max_pktlen [default=0];
128  vl_api_rdma_rss4_t rss4 [default=0];
129  vl_api_rdma_rss6_t rss6 [default=0];
130  option vat_help = "<host-if ifname> [name <name>] [rx-queue-size <size>] [tx-queue-size <size>] [num-rx-queues <size>] [mode <auto|ibv|dv>] [no-multi-seg] [max-pktlen <size>] [rss <ipv4|ipv4-udp|ipv4-tcp>] [rss <ipv6|ipv6-udp|ipv6-tcp>]";
131 };
132 
133 
134 /** \brief
135  @param context - sender context, to match reply w/ request
136  @param retval - return value for request
137  @param sw_if_index - software index for the new rdma interface
138 */
139 
140 define rdma_create_reply
141 {
144  vl_api_interface_index_t sw_if_index;
145 };
146 
147 /** \brief
148  @param context - sender context, to match reply w/ request
149  @param retval - return value for request
150  @param sw_if_index - software index for the new rdma interface
151 */
152 
153 define rdma_create_v2_reply
154 {
157  vl_api_interface_index_t sw_if_index;
158 };
159 
160 /** \brief
161  @param client_index - opaque cookie to identify the sender
162  @param context - sender context, to match reply w/ request
163  @param sw_if_index - interface index
164 */
165 
166 define rdma_create_v3_reply
167 {
170  vl_api_interface_index_t sw_if_index;
171 };
172 
173 /** \brief
174  @param client_index - opaque cookie to identify the sender
175  @param context - sender context, to match reply w/ request
176  @param sw_if_index - interface index
177 */
178 
179 autoreply define rdma_delete
180 {
183 
184  vl_api_interface_index_t sw_if_index;
185  option vat_help = "<sw_if_index index>";
186 };
187 
188 /*
189  * Local Variables:
190  * eval: (c-set-style "gnu")
191  * End:
192  */
vl_api_rdma_create_t::txq_size
u16 txq_size[default=1024]
Definition: rdma.api:49
vl_api_rdma_create_v2_reply_t
Definition: rdma.api:153
vl_api_rdma_create_v3_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: rdma.api:170
RDMA_API_RSS6_IP_TCP
@ RDMA_API_RSS6_IP_TCP
Definition: rdma.api:97
vl_api_rdma_create_t::name
string name[64]
Definition: rdma.api:46
vl_api_rdma_create_v3_t::rxq_size
u16 rxq_size[default=1024]
Definition: rdma.api:123
RDMA_API_MODE_IBV
@ RDMA_API_MODE_IBV
Definition: rdma.api:24
name
string name[64]
Definition: fib.api:25
vl_api_rdma_create_v3_t::txq_size
u16 txq_size[default=1024]
Definition: rdma.api:124
vl_api_rdma_create_v2_t::mode
vl_api_rdma_mode_t mode[default=0]
Definition: rdma.api:78
vl_api_rdma_create_v2_reply_t::context
u32 context
Definition: rdma.api:155
vl_api_rdma_create_v3_t::no_multi_seg
bool no_multi_seg[default=0]
Definition: rdma.api:126
vl_api_rdma_create_v2_t::txq_size
u16 txq_size[default=1024]
Definition: rdma.api:77
vl_api_rdma_create_v3_reply_t::retval
i32 retval
Definition: rdma.api:169
vl_api_rdma_create_v2_reply_t::retval
i32 retval
Definition: rdma.api:156
u16
unsigned short u16
Definition: types.h:57
mode
vl_api_tunnel_mode_t mode
Definition: gre.api:48
vl_api_rdma_create_t
Definition: rdma.api:39
RDMA_API_RSS4_IP
@ RDMA_API_RSS4_IP
Definition: rdma.api:87
vl_api_rdma_create_v3_t::rss4
vl_api_rdma_rss4_t rss4[default=0]
Definition: rdma.api:128
version
option version
Definition: rdma.api:18
i32
signed int i32
Definition: types.h:77
rdma_rss6
rdma_rss6
Definition: rdma.api:92
vl_api_rdma_create_t::context
u32 context
Definition: rdma.api:43
vl_api_rdma_create_v2_t::host_if
string host_if[64]
Definition: rdma.api:73
vl_api_rdma_create_v3_t
Definition: rdma.api:115
vl_api_rdma_create_v2_t::name
string name[64]
Definition: rdma.api:74
vl_api_rdma_delete_t::context
u32 context
Definition: rdma.api:182
vl_api_rdma_create_v3_t::rxq_num
u16 rxq_num[default=1]
Definition: rdma.api:122
vl_api_rdma_create_v3_t::name
string name[64]
Definition: rdma.api:121
RDMA_API_RSS6_IP_UDP
@ RDMA_API_RSS6_IP_UDP
Definition: rdma.api:96
vl_api_rdma_create_v3_t::rss6
vl_api_rdma_rss6_t rss6[default=0]
Definition: rdma.api:129
vl_api_rdma_create_v2_t::rxq_num
u16 rxq_num[default=1]
Definition: rdma.api:75
RDMA_API_RSS6_IP
@ RDMA_API_RSS6_IP
Definition: rdma.api:95
RDMA_API_MODE_DV
@ RDMA_API_MODE_DV
Definition: rdma.api:25
vl_api_rdma_create_v2_t
Definition: rdma.api:67
vl_api_rdma_create_v3_t::vat_help
option vat_help
Definition: rdma.api:130
vl_api_rdma_create_t::deprecated
option deprecated
Definition: rdma.api:41
vl_api_rdma_create_t::vat_help
option vat_help
Definition: rdma.api:51
RDMA_API_RSS6_AUTO
@ RDMA_API_RSS6_AUTO
Definition: rdma.api:94
vl_api_rdma_create_v3_t::mode
vl_api_rdma_mode_t mode[default=0]
Definition: rdma.api:125
vl_api_rdma_create_v3_t::host_if
string host_if[64]
Definition: rdma.api:120
RDMA_API_RSS4_AUTO
@ RDMA_API_RSS4_AUTO
Definition: rdma.api:86
vl_api_rdma_create_t::host_if
string host_if[64]
Definition: rdma.api:45
vl_api_rdma_create_v2_t::max_pktlen
u16 max_pktlen[default=0]
Definition: rdma.api:80
vl_api_rdma_create_reply_t::context
u32 context
Definition: rdma.api:142
vl_api_rdma_create_v3_reply_t
Definition: rdma.api:166
vl_api_rdma_delete_t
Definition: rdma.api:179
rdma_mode
rdma_mode
Definition: rdma.api:21
vl_api_rdma_create_t::rxq_size
u16 rxq_size[default=1024]
Definition: rdma.api:48
vl_api_rdma_delete_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: rdma.api:184
vl_api_rdma_create_reply_t::retval
i32 retval
Definition: rdma.api:143
RDMA_API_RSS4_IP_TCP
@ RDMA_API_RSS4_IP_TCP
Definition: rdma.api:89
vl_api_rdma_create_t::rxq_num
u16 rxq_num[default=1]
Definition: rdma.api:47
vl_api_rdma_create_v3_reply_t::context
u32 context
Definition: rdma.api:168
vl_api_rdma_create_v2_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: rdma.api:157
vl_api_rdma_create_t::mode
vl_api_rdma_mode_t mode[default=0]
Definition: rdma.api:50
vl_api_rdma_create_v2_t::rxq_size
u16 rxq_size[default=1024]
Definition: rdma.api:76
u32
unsigned int u32
Definition: types.h:88
vl_api_rdma_create_v2_t::no_multi_seg
bool no_multi_seg[default=0]
Definition: rdma.api:79
vl_api_rdma_create_t::client_index
u32 client_index
Definition: rdma.api:42
vl_api_rdma_create_reply_t
Definition: rdma.api:140
vl_api_rdma_delete_t::client_index
u32 client_index
Definition: rdma.api:181
vl_api_rdma_create_v2_t::context
u32 context
Definition: rdma.api:71
vl_api_rdma_delete_t::vat_help
option vat_help
Definition: rdma.api:185
vl_api_rdma_create_v3_t::max_pktlen
u16 max_pktlen[default=0]
Definition: rdma.api:127
vl_api_rdma_create_v2_t::vat_help
option vat_help
Definition: rdma.api:81
vl_api_rdma_create_v3_t::client_index
u32 client_index
Definition: rdma.api:117
RDMA_API_MODE_AUTO
@ RDMA_API_MODE_AUTO
Definition: rdma.api:23
rdma_rss4
rdma_rss4
Definition: rdma.api:84
vl_api_rdma_create_reply_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: rdma.api:144
vl_api_rdma_create_v2_t::client_index
u32 client_index
Definition: rdma.api:70
RDMA_API_RSS4_IP_UDP
@ RDMA_API_RSS4_IP_UDP
Definition: rdma.api:88
vl_api_rdma_create_v2_t::deprecated
option deprecated
Definition: rdma.api:69
vl_api_rdma_create_v3_t::context
u32 context
Definition: rdma.api:118