blob: a3ed5dbce31aa1f9fd902647b823f9c8bc5e1cfd [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef IB_USER_VERBS_H
20#define IB_USER_VERBS_H
21#include <linux/types.h>
22#define IB_USER_VERBS_ABI_VERSION 6
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070024#define IB_USER_VERBS_CMD_THRESHOLD 50
Ben Cheng655a7c02013-10-16 16:09:24 -070025enum {
Tao Baod7db5942015-01-28 10:07:51 -080026 IB_USER_VERBS_CMD_GET_CONTEXT,
27 IB_USER_VERBS_CMD_QUERY_DEVICE,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 IB_USER_VERBS_CMD_QUERY_PORT,
30 IB_USER_VERBS_CMD_ALLOC_PD,
31 IB_USER_VERBS_CMD_DEALLOC_PD,
32 IB_USER_VERBS_CMD_CREATE_AH,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 IB_USER_VERBS_CMD_MODIFY_AH,
35 IB_USER_VERBS_CMD_QUERY_AH,
36 IB_USER_VERBS_CMD_DESTROY_AH,
37 IB_USER_VERBS_CMD_REG_MR,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 IB_USER_VERBS_CMD_REG_SMR,
40 IB_USER_VERBS_CMD_REREG_MR,
41 IB_USER_VERBS_CMD_QUERY_MR,
42 IB_USER_VERBS_CMD_DEREG_MR,
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 IB_USER_VERBS_CMD_ALLOC_MW,
45 IB_USER_VERBS_CMD_BIND_MW,
46 IB_USER_VERBS_CMD_DEALLOC_MW,
47 IB_USER_VERBS_CMD_CREATE_COMP_CHANNEL,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 IB_USER_VERBS_CMD_CREATE_CQ,
50 IB_USER_VERBS_CMD_RESIZE_CQ,
51 IB_USER_VERBS_CMD_DESTROY_CQ,
52 IB_USER_VERBS_CMD_POLL_CQ,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 IB_USER_VERBS_CMD_PEEK_CQ,
55 IB_USER_VERBS_CMD_REQ_NOTIFY_CQ,
56 IB_USER_VERBS_CMD_CREATE_QP,
57 IB_USER_VERBS_CMD_QUERY_QP,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 IB_USER_VERBS_CMD_MODIFY_QP,
60 IB_USER_VERBS_CMD_DESTROY_QP,
61 IB_USER_VERBS_CMD_POST_SEND,
62 IB_USER_VERBS_CMD_POST_RECV,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 IB_USER_VERBS_CMD_ATTACH_MCAST,
65 IB_USER_VERBS_CMD_DETACH_MCAST,
66 IB_USER_VERBS_CMD_CREATE_SRQ,
67 IB_USER_VERBS_CMD_MODIFY_SRQ,
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 IB_USER_VERBS_CMD_QUERY_SRQ,
70 IB_USER_VERBS_CMD_DESTROY_SRQ,
71 IB_USER_VERBS_CMD_POST_SRQ_RECV,
72 IB_USER_VERBS_CMD_OPEN_XRCD,
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 IB_USER_VERBS_CMD_CLOSE_XRCD,
75 IB_USER_VERBS_CMD_CREATE_XSRQ,
76 IB_USER_VERBS_CMD_OPEN_QP,
Ben Cheng655a7c02013-10-16 16:09:24 -070077};
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070079enum {
Christopher Ferris05d08e92016-02-04 13:16:38 -080080 IB_USER_VERBS_EX_CMD_QUERY_DEVICE = IB_USER_VERBS_CMD_QUERY_DEVICE,
81 IB_USER_VERBS_EX_CMD_CREATE_CQ = IB_USER_VERBS_CMD_CREATE_CQ,
82 IB_USER_VERBS_EX_CMD_CREATE_QP = IB_USER_VERBS_CMD_CREATE_QP,
Christopher Ferris38062f92014-07-09 15:33:25 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084 IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD,
85 IB_USER_VERBS_EX_CMD_DESTROY_FLOW,
86};
Christopher Ferris38062f92014-07-09 15:33:25 -070087struct ib_uverbs_async_event_desc {
Christopher Ferris05d08e92016-02-04 13:16:38 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 __u64 element;
90 __u32 event_type;
91 __u32 reserved;
Christopher Ferris38062f92014-07-09 15:33:25 -070092};
Christopher Ferris05d08e92016-02-04 13:16:38 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094struct ib_uverbs_comp_event_desc {
Tao Baod7db5942015-01-28 10:07:51 -080095 __u64 cq_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
Christopher Ferris38062f92014-07-09 15:33:25 -070097#define IB_USER_VERBS_CMD_COMMAND_MASK 0xff
Christopher Ferris05d08e92016-02-04 13:16:38 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070099#define IB_USER_VERBS_CMD_FLAGS_MASK 0xff000000u
100#define IB_USER_VERBS_CMD_FLAGS_SHIFT 24
101#define IB_USER_VERBS_CMD_FLAG_EXTENDED 0x80
Christopher Ferris38062f92014-07-09 15:33:25 -0700102struct ib_uverbs_cmd_hdr {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 __u32 command;
105 __u16 in_words;
106 __u16 out_words;
Christopher Ferris38062f92014-07-09 15:33:25 -0700107};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700109struct ib_uverbs_ex_cmd_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800110 __u64 response;
111 __u16 provider_in_words;
Tao Baod7db5942015-01-28 10:07:51 -0800112 __u16 provider_out_words;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __u32 cmd_hdr_reserved;
Christopher Ferris38062f92014-07-09 15:33:25 -0700115};
Ben Cheng655a7c02013-10-16 16:09:24 -0700116struct ib_uverbs_get_context {
Tao Baod7db5942015-01-28 10:07:51 -0800117 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700120};
Ben Cheng655a7c02013-10-16 16:09:24 -0700121struct ib_uverbs_get_context_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800122 __u32 async_fd;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u32 num_comp_vectors;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125};
Ben Cheng655a7c02013-10-16 16:09:24 -0700126struct ib_uverbs_query_device {
Tao Baod7db5942015-01-28 10:07:51 -0800127 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700130};
Ben Cheng655a7c02013-10-16 16:09:24 -0700131struct ib_uverbs_query_device_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800132 __u64 fw_ver;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __be64 node_guid;
135 __be64 sys_image_guid;
136 __u64 max_mr_size;
Tao Baod7db5942015-01-28 10:07:51 -0800137 __u64 page_size_cap;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u32 vendor_id;
140 __u32 vendor_part_id;
141 __u32 hw_ver;
Tao Baod7db5942015-01-28 10:07:51 -0800142 __u32 max_qp;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u32 max_qp_wr;
145 __u32 device_cap_flags;
146 __u32 max_sge;
Tao Baod7db5942015-01-28 10:07:51 -0800147 __u32 max_sge_rd;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 max_cq;
150 __u32 max_cqe;
151 __u32 max_mr;
Tao Baod7db5942015-01-28 10:07:51 -0800152 __u32 max_pd;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u32 max_qp_rd_atom;
155 __u32 max_ee_rd_atom;
156 __u32 max_res_rd_atom;
Tao Baod7db5942015-01-28 10:07:51 -0800157 __u32 max_qp_init_rd_atom;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u32 max_ee_init_rd_atom;
160 __u32 atomic_cap;
161 __u32 max_ee;
Tao Baod7db5942015-01-28 10:07:51 -0800162 __u32 max_rdd;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 max_mw;
165 __u32 max_raw_ipv6_qp;
166 __u32 max_raw_ethy_qp;
Tao Baod7db5942015-01-28 10:07:51 -0800167 __u32 max_mcast_grp;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u32 max_mcast_qp_attach;
170 __u32 max_total_mcast_qp_attach;
171 __u32 max_ah;
Tao Baod7db5942015-01-28 10:07:51 -0800172 __u32 max_fmr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u32 max_map_per_fmr;
175 __u32 max_srq;
176 __u32 max_srq_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800177 __u32 max_srq_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u16 max_pkeys;
180 __u8 local_ca_ack_delay;
181 __u8 phys_port_cnt;
Tao Baod7db5942015-01-28 10:07:51 -0800182 __u8 reserved[4];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184};
185struct ib_uverbs_ex_query_device {
186 __u32 comp_mask;
187 __u32 reserved;
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189};
190struct ib_uverbs_odp_caps {
191 __u64 general_caps;
192 struct {
193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194 __u32 rc_odp_caps;
195 __u32 uc_odp_caps;
196 __u32 ud_odp_caps;
197 } per_transport_caps;
198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 __u32 reserved;
200};
201struct ib_uverbs_ex_query_device_resp {
202 struct ib_uverbs_query_device_resp base;
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 __u32 comp_mask;
205 __u32 response_length;
206 struct ib_uverbs_odp_caps odp_caps;
207 __u64 timestamp_mask;
208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 __u64 hca_core_clock;
Ben Cheng655a7c02013-10-16 16:09:24 -0700210};
211struct ib_uverbs_query_port {
Tao Baod7db5942015-01-28 10:07:51 -0800212 __u64 response;
Christopher Ferris38062f92014-07-09 15:33:25 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 __u8 port_num;
215 __u8 reserved[7];
216 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700217};
Christopher Ferris38062f92014-07-09 15:33:25 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219struct ib_uverbs_query_port_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800220 __u32 port_cap_flags;
221 __u32 max_msg_sz;
222 __u32 bad_pkey_cntr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 __u32 qkey_viol_cntr;
225 __u32 gid_tbl_len;
226 __u16 pkey_tbl_len;
227 __u16 lid;
Christopher Ferris38062f92014-07-09 15:33:25 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 __u16 sm_lid;
230 __u8 state;
231 __u8 max_mtu;
232 __u8 active_mtu;
Christopher Ferris38062f92014-07-09 15:33:25 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 __u8 lmc;
235 __u8 max_vl_num;
236 __u8 sm_sl;
237 __u8 subnet_timeout;
Christopher Ferris38062f92014-07-09 15:33:25 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800239 __u8 init_type_reply;
240 __u8 active_width;
241 __u8 active_speed;
242 __u8 phys_state;
Christopher Ferris38062f92014-07-09 15:33:25 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800244 __u8 link_layer;
245 __u8 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700246};
Ben Cheng655a7c02013-10-16 16:09:24 -0700247struct ib_uverbs_alloc_pd {
Christopher Ferris38062f92014-07-09 15:33:25 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800249 __u64 response;
250 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700251};
Ben Cheng655a7c02013-10-16 16:09:24 -0700252struct ib_uverbs_alloc_pd_resp {
Christopher Ferris38062f92014-07-09 15:33:25 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800254 __u32 pd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700255};
256struct ib_uverbs_dealloc_pd {
Tao Baod7db5942015-01-28 10:07:51 -0800257 __u32 pd_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700259};
260struct ib_uverbs_open_xrcd {
Tao Baod7db5942015-01-28 10:07:51 -0800261 __u64 response;
262 __u32 fd;
Christopher Ferris38062f92014-07-09 15:33:25 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800264 __u32 oflags;
265 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700266};
Ben Cheng655a7c02013-10-16 16:09:24 -0700267struct ib_uverbs_open_xrcd_resp {
Christopher Ferris38062f92014-07-09 15:33:25 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 __u32 xrcd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700270};
271struct ib_uverbs_close_xrcd {
Tao Baod7db5942015-01-28 10:07:51 -0800272 __u32 xrcd_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700274};
275struct ib_uverbs_reg_mr {
Tao Baod7db5942015-01-28 10:07:51 -0800276 __u64 response;
277 __u64 start;
Christopher Ferris38062f92014-07-09 15:33:25 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 __u64 length;
280 __u64 hca_va;
281 __u32 pd_handle;
282 __u32 access_flags;
Christopher Ferris38062f92014-07-09 15:33:25 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800284 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700285};
286struct ib_uverbs_reg_mr_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800287 __u32 mr_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 __u32 lkey;
290 __u32 rkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700291};
Christopher Ferris82d75042015-01-26 10:57:07 -0800292struct ib_uverbs_rereg_mr {
Christopher Ferris38062f92014-07-09 15:33:25 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 __u64 response;
295 __u32 mr_handle;
296 __u32 flags;
297 __u64 start;
Christopher Ferris82d75042015-01-26 10:57:07 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299 __u64 length;
300 __u64 hca_va;
301 __u32 pd_handle;
302 __u32 access_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304};
305struct ib_uverbs_rereg_mr_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800306 __u32 lkey;
307 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309};
310struct ib_uverbs_dereg_mr {
Tao Baod7db5942015-01-28 10:07:51 -0800311 __u32 mr_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700312};
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314struct ib_uverbs_alloc_mw {
Tao Baod7db5942015-01-28 10:07:51 -0800315 __u64 response;
316 __u32 pd_handle;
317 __u8 mw_type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800319 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700320};
321struct ib_uverbs_alloc_mw_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800322 __u32 mw_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800324 __u32 rkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700325};
326struct ib_uverbs_dealloc_mw {
Tao Baod7db5942015-01-28 10:07:51 -0800327 __u32 mw_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700329};
Ben Cheng655a7c02013-10-16 16:09:24 -0700330struct ib_uverbs_create_comp_channel {
Tao Baod7db5942015-01-28 10:07:51 -0800331 __u64 response;
Ben Cheng655a7c02013-10-16 16:09:24 -0700332};
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700334struct ib_uverbs_create_comp_channel_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800335 __u32 fd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700336};
337struct ib_uverbs_create_cq {
Christopher Ferris82d75042015-01-26 10:57:07 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 __u64 response;
340 __u64 user_handle;
341 __u32 cqe;
342 __u32 comp_vector;
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 __s32 comp_channel;
345 __u32 reserved;
346 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700347};
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800349struct ib_uverbs_ex_create_cq {
350 __u64 user_handle;
351 __u32 cqe;
352 __u32 comp_vector;
353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354 __s32 comp_channel;
355 __u32 comp_mask;
356 __u32 flags;
357 __u32 reserved;
358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359};
Ben Cheng655a7c02013-10-16 16:09:24 -0700360struct ib_uverbs_create_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800361 __u32 cq_handle;
362 __u32 cqe;
Christopher Ferris82d75042015-01-26 10:57:07 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800364};
365struct ib_uverbs_ex_create_cq_resp {
366 struct ib_uverbs_create_cq_resp base;
367 __u32 comp_mask;
368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369 __u32 response_length;
370};
Ben Cheng655a7c02013-10-16 16:09:24 -0700371struct ib_uverbs_resize_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800372 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800374 __u32 cq_handle;
375 __u32 cqe;
Tao Baod7db5942015-01-28 10:07:51 -0800376 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700377};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379struct ib_uverbs_resize_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800380 __u32 cqe;
Tao Baod7db5942015-01-28 10:07:51 -0800381 __u32 reserved;
382 __u64 driver_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384};
385struct ib_uverbs_poll_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800386 __u64 response;
387 __u32 cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389 __u32 ne;
Ben Cheng655a7c02013-10-16 16:09:24 -0700390};
391struct ib_uverbs_wc {
Tao Baod7db5942015-01-28 10:07:51 -0800392 __u64 wr_id;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 __u32 status;
395 __u32 opcode;
Tao Baod7db5942015-01-28 10:07:51 -0800396 __u32 vendor_err;
397 __u32 byte_len;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 union {
400 __u32 imm_data;
Tao Baod7db5942015-01-28 10:07:51 -0800401 __u32 invalidate_rkey;
402 } ex;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 __u32 qp_num;
405 __u32 src_qp;
Tao Baod7db5942015-01-28 10:07:51 -0800406 __u32 wc_flags;
407 __u16 pkey_index;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800409 __u16 slid;
410 __u8 sl;
Tao Baod7db5942015-01-28 10:07:51 -0800411 __u8 dlid_path_bits;
412 __u8 port_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700415};
416struct ib_uverbs_poll_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800417 __u32 count;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800419 __u32 reserved;
420 struct ib_uverbs_wc wc[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700421};
Ben Cheng655a7c02013-10-16 16:09:24 -0700422struct ib_uverbs_req_notify_cq {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 __u32 cq_handle;
425 __u32 solicited_only;
Ben Cheng655a7c02013-10-16 16:09:24 -0700426};
Ben Cheng655a7c02013-10-16 16:09:24 -0700427struct ib_uverbs_destroy_cq {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800429 __u64 response;
430 __u32 cq_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800431 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700432};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700434struct ib_uverbs_destroy_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800435 __u32 comp_events_reported;
Tao Baod7db5942015-01-28 10:07:51 -0800436 __u32 async_events_reported;
Ben Cheng655a7c02013-10-16 16:09:24 -0700437};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700439struct ib_uverbs_global_route {
Tao Baod7db5942015-01-28 10:07:51 -0800440 __u8 dgid[16];
Tao Baod7db5942015-01-28 10:07:51 -0800441 __u32 flow_label;
442 __u8 sgid_index;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444 __u8 hop_limit;
445 __u8 traffic_class;
Tao Baod7db5942015-01-28 10:07:51 -0800446 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700447};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449struct ib_uverbs_ah_attr {
Tao Baod7db5942015-01-28 10:07:51 -0800450 struct ib_uverbs_global_route grh;
Tao Baod7db5942015-01-28 10:07:51 -0800451 __u16 dlid;
452 __u8 sl;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800454 __u8 src_path_bits;
455 __u8 static_rate;
Tao Baod7db5942015-01-28 10:07:51 -0800456 __u8 is_global;
457 __u8 port_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700460};
461struct ib_uverbs_qp_attr {
Tao Baod7db5942015-01-28 10:07:51 -0800462 __u32 qp_attr_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800464 __u32 qp_state;
465 __u32 cur_qp_state;
Tao Baod7db5942015-01-28 10:07:51 -0800466 __u32 path_mtu;
467 __u32 path_mig_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800469 __u32 qkey;
470 __u32 rq_psn;
Tao Baod7db5942015-01-28 10:07:51 -0800471 __u32 sq_psn;
472 __u32 dest_qp_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800474 __u32 qp_access_flags;
475 struct ib_uverbs_ah_attr ah_attr;
Tao Baod7db5942015-01-28 10:07:51 -0800476 struct ib_uverbs_ah_attr alt_ah_attr;
477 __u32 max_send_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800479 __u32 max_recv_wr;
480 __u32 max_send_sge;
Tao Baod7db5942015-01-28 10:07:51 -0800481 __u32 max_recv_sge;
482 __u32 max_inline_data;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800484 __u16 pkey_index;
485 __u16 alt_pkey_index;
Tao Baod7db5942015-01-28 10:07:51 -0800486 __u8 en_sqd_async_notify;
487 __u8 sq_draining;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800489 __u8 max_rd_atomic;
490 __u8 max_dest_rd_atomic;
Tao Baod7db5942015-01-28 10:07:51 -0800491 __u8 min_rnr_timer;
492 __u8 port_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800494 __u8 timeout;
495 __u8 retry_cnt;
Tao Baod7db5942015-01-28 10:07:51 -0800496 __u8 rnr_retry;
497 __u8 alt_port_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800499 __u8 alt_timeout;
500 __u8 reserved[5];
Ben Cheng655a7c02013-10-16 16:09:24 -0700501};
Ben Cheng655a7c02013-10-16 16:09:24 -0700502struct ib_uverbs_create_qp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800504 __u64 response;
505 __u64 user_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800506 __u32 pd_handle;
507 __u32 send_cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
509 __u32 recv_cq_handle;
510 __u32 srq_handle;
511 __u32 max_send_wr;
512 __u32 max_recv_wr;
513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
514 __u32 max_send_sge;
515 __u32 max_recv_sge;
516 __u32 max_inline_data;
517 __u8 sq_sig_all;
518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
519 __u8 qp_type;
520 __u8 is_srq;
521 __u8 reserved;
522 __u64 driver_data[0];
523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
524};
525struct ib_uverbs_ex_create_qp {
526 __u64 user_handle;
527 __u32 pd_handle;
528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
529 __u32 send_cq_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800530 __u32 recv_cq_handle;
531 __u32 srq_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800532 __u32 max_send_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800534 __u32 max_recv_wr;
535 __u32 max_send_sge;
536 __u32 max_recv_sge;
Tao Baod7db5942015-01-28 10:07:51 -0800537 __u32 max_inline_data;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800539 __u8 sq_sig_all;
540 __u8 qp_type;
541 __u8 is_srq;
Tao Baod7db5942015-01-28 10:07:51 -0800542 __u8 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
544 __u32 comp_mask;
545 __u32 create_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700546};
547struct ib_uverbs_open_qp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800549 __u64 response;
550 __u64 user_handle;
551 __u32 pd_handle;
552 __u32 qpn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800554 __u8 qp_type;
555 __u8 reserved[7];
556 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700557};
Christopher Ferris82d75042015-01-26 10:57:07 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700559struct ib_uverbs_create_qp_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800560 __u32 qp_handle;
561 __u32 qpn;
562 __u32 max_send_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800564 __u32 max_recv_wr;
565 __u32 max_send_sge;
566 __u32 max_recv_sge;
567 __u32 max_inline_data;
Christopher Ferris82d75042015-01-26 10:57:07 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800569 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700570};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800571struct ib_uverbs_ex_create_qp_resp {
572 struct ib_uverbs_create_qp_resp base;
Christopher Ferris82d75042015-01-26 10:57:07 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800574 __u32 comp_mask;
575 __u32 response_length;
576};
577struct ib_uverbs_qp_dest {
578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
579 __u8 dgid[16];
Tao Baod7db5942015-01-28 10:07:51 -0800580 __u32 flow_label;
581 __u16 dlid;
582 __u16 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800584 __u8 sgid_index;
Tao Baod7db5942015-01-28 10:07:51 -0800585 __u8 hop_limit;
586 __u8 traffic_class;
587 __u8 sl;
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800589 __u8 src_path_bits;
Tao Baod7db5942015-01-28 10:07:51 -0800590 __u8 static_rate;
591 __u8 is_global;
592 __u8 port_num;
Christopher Ferris82d75042015-01-26 10:57:07 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800594};
Ben Cheng655a7c02013-10-16 16:09:24 -0700595struct ib_uverbs_query_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800596 __u64 response;
597 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800599 __u32 attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800600 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700601};
602struct ib_uverbs_query_qp_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800604 struct ib_uverbs_qp_dest dest;
Tao Baod7db5942015-01-28 10:07:51 -0800605 struct ib_uverbs_qp_dest alt_dest;
606 __u32 max_send_wr;
607 __u32 max_recv_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800609 __u32 max_send_sge;
Tao Baod7db5942015-01-28 10:07:51 -0800610 __u32 max_recv_sge;
611 __u32 max_inline_data;
612 __u32 qkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800614 __u32 rq_psn;
Tao Baod7db5942015-01-28 10:07:51 -0800615 __u32 sq_psn;
616 __u32 dest_qp_num;
617 __u32 qp_access_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800619 __u16 pkey_index;
Tao Baod7db5942015-01-28 10:07:51 -0800620 __u16 alt_pkey_index;
621 __u8 qp_state;
622 __u8 cur_qp_state;
Christopher Ferris82d75042015-01-26 10:57:07 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800624 __u8 path_mtu;
Tao Baod7db5942015-01-28 10:07:51 -0800625 __u8 path_mig_state;
626 __u8 sq_draining;
627 __u8 max_rd_atomic;
Christopher Ferris82d75042015-01-26 10:57:07 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800629 __u8 max_dest_rd_atomic;
Tao Baod7db5942015-01-28 10:07:51 -0800630 __u8 min_rnr_timer;
631 __u8 port_num;
632 __u8 timeout;
Christopher Ferris82d75042015-01-26 10:57:07 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800634 __u8 retry_cnt;
Tao Baod7db5942015-01-28 10:07:51 -0800635 __u8 rnr_retry;
636 __u8 alt_port_num;
637 __u8 alt_timeout;
Christopher Ferris82d75042015-01-26 10:57:07 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800639 __u8 sq_sig_all;
Tao Baod7db5942015-01-28 10:07:51 -0800640 __u8 reserved[5];
641 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700642};
Christopher Ferris82d75042015-01-26 10:57:07 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800644struct ib_uverbs_modify_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800645 struct ib_uverbs_qp_dest dest;
646 struct ib_uverbs_qp_dest alt_dest;
647 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800649 __u32 attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800650 __u32 qkey;
651 __u32 rq_psn;
652 __u32 sq_psn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800654 __u32 dest_qp_num;
Tao Baod7db5942015-01-28 10:07:51 -0800655 __u32 qp_access_flags;
656 __u16 pkey_index;
657 __u16 alt_pkey_index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800659 __u8 qp_state;
Tao Baod7db5942015-01-28 10:07:51 -0800660 __u8 cur_qp_state;
661 __u8 path_mtu;
662 __u8 path_mig_state;
Christopher Ferris82d75042015-01-26 10:57:07 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800664 __u8 en_sqd_async_notify;
Tao Baod7db5942015-01-28 10:07:51 -0800665 __u8 max_rd_atomic;
666 __u8 max_dest_rd_atomic;
667 __u8 min_rnr_timer;
Christopher Ferris82d75042015-01-26 10:57:07 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800669 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800670 __u8 timeout;
671 __u8 retry_cnt;
672 __u8 rnr_retry;
Christopher Ferris82d75042015-01-26 10:57:07 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800674 __u8 alt_port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800675 __u8 alt_timeout;
676 __u8 reserved[2];
677 __u64 driver_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800679};
Ben Cheng655a7c02013-10-16 16:09:24 -0700680struct ib_uverbs_modify_qp_resp {
Ben Cheng655a7c02013-10-16 16:09:24 -0700681};
682struct ib_uverbs_destroy_qp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800684 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800685 __u32 qp_handle;
686 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700687};
Christopher Ferris82d75042015-01-26 10:57:07 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800689struct ib_uverbs_destroy_qp_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800690 __u32 events_reported;
Ben Cheng655a7c02013-10-16 16:09:24 -0700691};
692struct ib_uverbs_sge {
Christopher Ferris82d75042015-01-26 10:57:07 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800694 __u64 addr;
Tao Baod7db5942015-01-28 10:07:51 -0800695 __u32 length;
696 __u32 lkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700697};
Christopher Ferris82d75042015-01-26 10:57:07 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800699struct ib_uverbs_send_wr {
Tao Baod7db5942015-01-28 10:07:51 -0800700 __u64 wr_id;
701 __u32 num_sge;
702 __u32 opcode;
Christopher Ferris82d75042015-01-26 10:57:07 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800704 __u32 send_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800705 union {
706 __u32 imm_data;
707 __u32 invalidate_rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800709 } ex;
Tao Baod7db5942015-01-28 10:07:51 -0800710 union {
711 struct {
712 __u64 remote_addr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800714 __u32 rkey;
Tao Baod7db5942015-01-28 10:07:51 -0800715 __u32 reserved;
716 } rdma;
717 struct {
Christopher Ferris82d75042015-01-26 10:57:07 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800719 __u64 remote_addr;
Tao Baod7db5942015-01-28 10:07:51 -0800720 __u64 compare_add;
721 __u64 swap;
722 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800724 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -0800725 } atomic;
726 struct {
727 __u32 ah;
Christopher Ferris82d75042015-01-26 10:57:07 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800729 __u32 remote_qpn;
Tao Baod7db5942015-01-28 10:07:51 -0800730 __u32 remote_qkey;
731 __u32 reserved;
732 } ud;
Christopher Ferris82d75042015-01-26 10:57:07 -0800733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800734 } wr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700735};
Ben Cheng655a7c02013-10-16 16:09:24 -0700736struct ib_uverbs_post_send {
Tao Baod7db5942015-01-28 10:07:51 -0800737 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800739 __u32 qp_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800740 __u32 wr_count;
741 __u32 sge_count;
742 __u32 wqe_size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800744 struct ib_uverbs_send_wr send_wr[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700745};
Ben Cheng655a7c02013-10-16 16:09:24 -0700746struct ib_uverbs_post_send_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800747 __u32 bad_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800749};
Ben Cheng655a7c02013-10-16 16:09:24 -0700750struct ib_uverbs_recv_wr {
Tao Baod7db5942015-01-28 10:07:51 -0800751 __u64 wr_id;
752 __u32 num_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800754 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700755};
Ben Cheng655a7c02013-10-16 16:09:24 -0700756struct ib_uverbs_post_recv {
Tao Baod7db5942015-01-28 10:07:51 -0800757 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800759 __u32 qp_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800760 __u32 wr_count;
761 __u32 sge_count;
762 __u32 wqe_size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800764 struct ib_uverbs_recv_wr recv_wr[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700765};
Ben Cheng655a7c02013-10-16 16:09:24 -0700766struct ib_uverbs_post_recv_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800767 __u32 bad_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800769};
Ben Cheng655a7c02013-10-16 16:09:24 -0700770struct ib_uverbs_post_srq_recv {
Tao Baod7db5942015-01-28 10:07:51 -0800771 __u64 response;
772 __u32 srq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800774 __u32 wr_count;
Tao Baod7db5942015-01-28 10:07:51 -0800775 __u32 sge_count;
776 __u32 wqe_size;
777 struct ib_uverbs_recv_wr recv[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800779};
Ben Cheng655a7c02013-10-16 16:09:24 -0700780struct ib_uverbs_post_srq_recv_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800781 __u32 bad_wr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700782};
Christopher Ferris82d75042015-01-26 10:57:07 -0800783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800784struct ib_uverbs_create_ah {
Tao Baod7db5942015-01-28 10:07:51 -0800785 __u64 response;
786 __u64 user_handle;
787 __u32 pd_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800789 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -0800790 struct ib_uverbs_ah_attr attr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700791};
792struct ib_uverbs_create_ah_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800794 __u32 ah_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700795};
Ben Cheng655a7c02013-10-16 16:09:24 -0700796struct ib_uverbs_destroy_ah {
Tao Baod7db5942015-01-28 10:07:51 -0800797 __u32 ah_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800799};
Ben Cheng655a7c02013-10-16 16:09:24 -0700800struct ib_uverbs_attach_mcast {
Tao Baod7db5942015-01-28 10:07:51 -0800801 __u8 gid[16];
802 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800804 __u16 mlid;
Tao Baod7db5942015-01-28 10:07:51 -0800805 __u16 reserved;
806 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700807};
Christopher Ferris82d75042015-01-26 10:57:07 -0800808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800809struct ib_uverbs_detach_mcast {
Tao Baod7db5942015-01-28 10:07:51 -0800810 __u8 gid[16];
811 __u32 qp_handle;
812 __u16 mlid;
Christopher Ferris82d75042015-01-26 10:57:07 -0800813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800814 __u16 reserved;
Tao Baod7db5942015-01-28 10:07:51 -0800815 __u64 driver_data[0];
Christopher Ferris38062f92014-07-09 15:33:25 -0700816};
Christopher Ferris38062f92014-07-09 15:33:25 -0700817struct ib_uverbs_flow_spec_hdr {
Christopher Ferris82d75042015-01-26 10:57:07 -0800818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800819 __u32 type;
Tao Baod7db5942015-01-28 10:07:51 -0800820 __u16 size;
821 __u16 reserved;
822 __u64 flow_spec_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800824};
Christopher Ferris38062f92014-07-09 15:33:25 -0700825struct ib_uverbs_flow_eth_filter {
Tao Baod7db5942015-01-28 10:07:51 -0800826 __u8 dst_mac[6];
827 __u8 src_mac[6];
Christopher Ferris82d75042015-01-26 10:57:07 -0800828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800829 __be16 ether_type;
Tao Baod7db5942015-01-28 10:07:51 -0800830 __be16 vlan_tag;
Christopher Ferris38062f92014-07-09 15:33:25 -0700831};
Christopher Ferris38062f92014-07-09 15:33:25 -0700832struct ib_uverbs_flow_spec_eth {
Christopher Ferris82d75042015-01-26 10:57:07 -0800833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800834 union {
Tao Baod7db5942015-01-28 10:07:51 -0800835 struct ib_uverbs_flow_spec_hdr hdr;
836 struct {
837 __u32 type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800839 __u16 size;
Tao Baod7db5942015-01-28 10:07:51 -0800840 __u16 reserved;
841 };
842 };
Christopher Ferris82d75042015-01-26 10:57:07 -0800843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800844 struct ib_uverbs_flow_eth_filter val;
Tao Baod7db5942015-01-28 10:07:51 -0800845 struct ib_uverbs_flow_eth_filter mask;
Christopher Ferris38062f92014-07-09 15:33:25 -0700846};
Christopher Ferris38062f92014-07-09 15:33:25 -0700847struct ib_uverbs_flow_ipv4_filter {
Christopher Ferris82d75042015-01-26 10:57:07 -0800848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800849 __be32 src_ip;
Tao Baod7db5942015-01-28 10:07:51 -0800850 __be32 dst_ip;
Christopher Ferris38062f92014-07-09 15:33:25 -0700851};
Christopher Ferris38062f92014-07-09 15:33:25 -0700852struct ib_uverbs_flow_spec_ipv4 {
Christopher Ferris82d75042015-01-26 10:57:07 -0800853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800854 union {
Tao Baod7db5942015-01-28 10:07:51 -0800855 struct ib_uverbs_flow_spec_hdr hdr;
856 struct {
857 __u32 type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800859 __u16 size;
Tao Baod7db5942015-01-28 10:07:51 -0800860 __u16 reserved;
861 };
862 };
Christopher Ferris82d75042015-01-26 10:57:07 -0800863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800864 struct ib_uverbs_flow_ipv4_filter val;
Tao Baod7db5942015-01-28 10:07:51 -0800865 struct ib_uverbs_flow_ipv4_filter mask;
Christopher Ferris38062f92014-07-09 15:33:25 -0700866};
Christopher Ferris38062f92014-07-09 15:33:25 -0700867struct ib_uverbs_flow_tcp_udp_filter {
Christopher Ferris82d75042015-01-26 10:57:07 -0800868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800869 __be16 dst_port;
Tao Baod7db5942015-01-28 10:07:51 -0800870 __be16 src_port;
Christopher Ferris38062f92014-07-09 15:33:25 -0700871};
Christopher Ferris38062f92014-07-09 15:33:25 -0700872struct ib_uverbs_flow_spec_tcp_udp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800874 union {
Tao Baod7db5942015-01-28 10:07:51 -0800875 struct ib_uverbs_flow_spec_hdr hdr;
876 struct {
877 __u32 type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800879 __u16 size;
Tao Baod7db5942015-01-28 10:07:51 -0800880 __u16 reserved;
881 };
882 };
Christopher Ferris82d75042015-01-26 10:57:07 -0800883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800884 struct ib_uverbs_flow_tcp_udp_filter val;
Tao Baod7db5942015-01-28 10:07:51 -0800885 struct ib_uverbs_flow_tcp_udp_filter mask;
Christopher Ferris38062f92014-07-09 15:33:25 -0700886};
Christopher Ferris38062f92014-07-09 15:33:25 -0700887struct ib_uverbs_flow_attr {
Christopher Ferris82d75042015-01-26 10:57:07 -0800888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800889 __u32 type;
Tao Baod7db5942015-01-28 10:07:51 -0800890 __u16 size;
891 __u16 priority;
892 __u8 num_of_specs;
Christopher Ferris82d75042015-01-26 10:57:07 -0800893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800894 __u8 reserved[2];
Tao Baod7db5942015-01-28 10:07:51 -0800895 __u8 port;
896 __u32 flags;
897 struct ib_uverbs_flow_spec_hdr flow_specs[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800899};
Christopher Ferris38062f92014-07-09 15:33:25 -0700900struct ib_uverbs_create_flow {
Tao Baod7db5942015-01-28 10:07:51 -0800901 __u32 comp_mask;
902 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800904 struct ib_uverbs_flow_attr flow_attr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700905};
906struct ib_uverbs_create_flow_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800907 __u32 comp_mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800909 __u32 flow_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700910};
911struct ib_uverbs_destroy_flow {
Tao Baod7db5942015-01-28 10:07:51 -0800912 __u32 comp_mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800914 __u32 flow_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700915};
916struct ib_uverbs_create_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800917 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800919 __u64 user_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800920 __u32 pd_handle;
921 __u32 max_wr;
922 __u32 max_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800924 __u32 srq_limit;
Tao Baod7db5942015-01-28 10:07:51 -0800925 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700926};
927struct ib_uverbs_create_xsrq {
Christopher Ferris82d75042015-01-26 10:57:07 -0800928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800929 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800930 __u64 user_handle;
931 __u32 srq_type;
932 __u32 pd_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800934 __u32 max_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800935 __u32 max_sge;
936 __u32 srq_limit;
937 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800939 __u32 xrcd_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800940 __u32 cq_handle;
941 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700942};
Christopher Ferris82d75042015-01-26 10:57:07 -0800943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800944struct ib_uverbs_create_srq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800945 __u32 srq_handle;
946 __u32 max_wr;
947 __u32 max_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800949 __u32 srqn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700950};
951struct ib_uverbs_modify_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800952 __u32 srq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800954 __u32 attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800955 __u32 max_wr;
956 __u32 srq_limit;
957 __u64 driver_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800959};
Ben Cheng655a7c02013-10-16 16:09:24 -0700960struct ib_uverbs_query_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800961 __u64 response;
962 __u32 srq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800964 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -0800965 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700966};
967struct ib_uverbs_query_srq_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800969 __u32 max_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800970 __u32 max_sge;
971 __u32 srq_limit;
972 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800974};
Ben Cheng655a7c02013-10-16 16:09:24 -0700975struct ib_uverbs_destroy_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800976 __u64 response;
977 __u32 srq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800979 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700980};
981struct ib_uverbs_destroy_srq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800982 __u32 events_reported;
Christopher Ferris82d75042015-01-26 10:57:07 -0800983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800984};
Ben Cheng655a7c02013-10-16 16:09:24 -0700985#endif