blob: 9c23ac21a7d04d466e0202e241801dc1adf7fd10 [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 {
Tao Baod7db5942015-01-28 10:07:51 -080080 IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD,
81 IB_USER_VERBS_EX_CMD_DESTROY_FLOW
Christopher Ferris38062f92014-07-09 15:33:25 -070082};
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84struct ib_uverbs_async_event_desc {
Tao Baod7db5942015-01-28 10:07:51 -080085 __u64 element;
86 __u32 event_type;
87 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089};
Ben Cheng655a7c02013-10-16 16:09:24 -070090struct ib_uverbs_comp_event_desc {
Tao Baod7db5942015-01-28 10:07:51 -080091 __u64 cq_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094#define IB_USER_VERBS_CMD_COMMAND_MASK 0xff
95#define IB_USER_VERBS_CMD_FLAGS_MASK 0xff000000u
96#define IB_USER_VERBS_CMD_FLAGS_SHIFT 24
97#define IB_USER_VERBS_CMD_FLAG_EXTENDED 0x80
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99struct ib_uverbs_cmd_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800100 __u32 command;
101 __u16 in_words;
102 __u16 out_words;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104};
105struct ib_uverbs_ex_cmd_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800106 __u64 response;
107 __u16 provider_in_words;
Christopher Ferris38062f92014-07-09 15:33:25 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 __u16 provider_out_words;
110 __u32 cmd_hdr_reserved;
Christopher Ferris38062f92014-07-09 15:33:25 -0700111};
Ben Cheng655a7c02013-10-16 16:09:24 -0700112struct ib_uverbs_get_context {
Christopher Ferris38062f92014-07-09 15:33:25 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __u64 response;
115 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700116};
Ben Cheng655a7c02013-10-16 16:09:24 -0700117struct ib_uverbs_get_context_resp {
Christopher Ferris38062f92014-07-09 15:33:25 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u32 async_fd;
120 __u32 num_comp_vectors;
Ben Cheng655a7c02013-10-16 16:09:24 -0700121};
Ben Cheng655a7c02013-10-16 16:09:24 -0700122struct ib_uverbs_query_device {
Christopher Ferris38062f92014-07-09 15:33:25 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u64 response;
125 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700126};
Ben Cheng655a7c02013-10-16 16:09:24 -0700127struct ib_uverbs_query_device_resp {
Christopher Ferris38062f92014-07-09 15:33:25 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u64 fw_ver;
130 __be64 node_guid;
131 __be64 sys_image_guid;
132 __u64 max_mr_size;
Christopher Ferris38062f92014-07-09 15:33:25 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u64 page_size_cap;
135 __u32 vendor_id;
136 __u32 vendor_part_id;
137 __u32 hw_ver;
Christopher Ferris38062f92014-07-09 15:33:25 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 __u32 max_qp;
140 __u32 max_qp_wr;
141 __u32 device_cap_flags;
142 __u32 max_sge;
Christopher Ferris38062f92014-07-09 15:33:25 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u32 max_sge_rd;
145 __u32 max_cq;
146 __u32 max_cqe;
147 __u32 max_mr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u32 max_pd;
150 __u32 max_qp_rd_atom;
151 __u32 max_ee_rd_atom;
152 __u32 max_res_rd_atom;
Christopher Ferris38062f92014-07-09 15:33:25 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u32 max_qp_init_rd_atom;
155 __u32 max_ee_init_rd_atom;
156 __u32 atomic_cap;
157 __u32 max_ee;
Christopher Ferris38062f92014-07-09 15:33:25 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u32 max_rdd;
160 __u32 max_mw;
161 __u32 max_raw_ipv6_qp;
162 __u32 max_raw_ethy_qp;
Christopher Ferris38062f92014-07-09 15:33:25 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u32 max_mcast_grp;
165 __u32 max_mcast_qp_attach;
166 __u32 max_total_mcast_qp_attach;
167 __u32 max_ah;
Christopher Ferris38062f92014-07-09 15:33:25 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u32 max_fmr;
170 __u32 max_map_per_fmr;
171 __u32 max_srq;
172 __u32 max_srq_wr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 __u32 max_srq_sge;
175 __u16 max_pkeys;
176 __u8 local_ca_ack_delay;
177 __u8 phys_port_cnt;
Christopher Ferris38062f92014-07-09 15:33:25 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u8 reserved[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700180};
181struct ib_uverbs_query_port {
Tao Baod7db5942015-01-28 10:07:51 -0800182 __u64 response;
Christopher Ferris38062f92014-07-09 15:33:25 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800184 __u8 port_num;
185 __u8 reserved[7];
186 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700187};
Christopher Ferris38062f92014-07-09 15:33:25 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189struct ib_uverbs_query_port_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800190 __u32 port_cap_flags;
191 __u32 max_msg_sz;
192 __u32 bad_pkey_cntr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 __u32 qkey_viol_cntr;
195 __u32 gid_tbl_len;
196 __u16 pkey_tbl_len;
197 __u16 lid;
Christopher Ferris38062f92014-07-09 15:33:25 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 __u16 sm_lid;
200 __u8 state;
201 __u8 max_mtu;
202 __u8 active_mtu;
Christopher Ferris38062f92014-07-09 15:33:25 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800204 __u8 lmc;
205 __u8 max_vl_num;
206 __u8 sm_sl;
207 __u8 subnet_timeout;
Christopher Ferris38062f92014-07-09 15:33:25 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 __u8 init_type_reply;
210 __u8 active_width;
211 __u8 active_speed;
212 __u8 phys_state;
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 link_layer;
215 __u8 reserved[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700216};
Ben Cheng655a7c02013-10-16 16:09:24 -0700217struct ib_uverbs_alloc_pd {
Christopher Ferris38062f92014-07-09 15:33:25 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800219 __u64 response;
220 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700221};
Ben Cheng655a7c02013-10-16 16:09:24 -0700222struct ib_uverbs_alloc_pd_resp {
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 pd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700225};
226struct ib_uverbs_dealloc_pd {
Tao Baod7db5942015-01-28 10:07:51 -0800227 __u32 pd_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700229};
230struct ib_uverbs_open_xrcd {
Tao Baod7db5942015-01-28 10:07:51 -0800231 __u64 response;
232 __u32 fd;
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 __u32 oflags;
235 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700236};
Ben Cheng655a7c02013-10-16 16:09:24 -0700237struct ib_uverbs_open_xrcd_resp {
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 __u32 xrcd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700240};
241struct ib_uverbs_close_xrcd {
Tao Baod7db5942015-01-28 10:07:51 -0800242 __u32 xrcd_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700244};
245struct ib_uverbs_reg_mr {
Tao Baod7db5942015-01-28 10:07:51 -0800246 __u64 response;
247 __u64 start;
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 length;
250 __u64 hca_va;
251 __u32 pd_handle;
252 __u32 access_flags;
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 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700255};
256struct ib_uverbs_reg_mr_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800257 __u32 mr_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800259 __u32 lkey;
260 __u32 rkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700261};
Christopher Ferris82d75042015-01-26 10:57:07 -0800262struct ib_uverbs_rereg_mr {
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 __u64 response;
265 __u32 mr_handle;
266 __u32 flags;
267 __u64 start;
Christopher Ferris82d75042015-01-26 10:57:07 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800269 __u64 length;
270 __u64 hca_va;
271 __u32 pd_handle;
272 __u32 access_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274};
275struct ib_uverbs_rereg_mr_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800276 __u32 lkey;
277 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279};
280struct ib_uverbs_dereg_mr {
Tao Baod7db5942015-01-28 10:07:51 -0800281 __u32 mr_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700282};
Christopher Ferris82d75042015-01-26 10:57:07 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700284struct ib_uverbs_alloc_mw {
Tao Baod7db5942015-01-28 10:07:51 -0800285 __u64 response;
286 __u32 pd_handle;
287 __u8 mw_type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700290};
291struct ib_uverbs_alloc_mw_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800292 __u32 mw_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 __u32 rkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700295};
296struct ib_uverbs_dealloc_mw {
Tao Baod7db5942015-01-28 10:07:51 -0800297 __u32 mw_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700299};
Ben Cheng655a7c02013-10-16 16:09:24 -0700300struct ib_uverbs_create_comp_channel {
Tao Baod7db5942015-01-28 10:07:51 -0800301 __u64 response;
Ben Cheng655a7c02013-10-16 16:09:24 -0700302};
Christopher Ferris82d75042015-01-26 10:57:07 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700304struct ib_uverbs_create_comp_channel_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800305 __u32 fd;
Ben Cheng655a7c02013-10-16 16:09:24 -0700306};
307struct ib_uverbs_create_cq {
Christopher Ferris82d75042015-01-26 10:57:07 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800309 __u64 response;
310 __u64 user_handle;
311 __u32 cqe;
312 __u32 comp_vector;
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800314 __s32 comp_channel;
315 __u32 reserved;
316 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700317};
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700319struct ib_uverbs_create_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800320 __u32 cq_handle;
321 __u32 cqe;
Ben Cheng655a7c02013-10-16 16:09:24 -0700322};
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700324struct ib_uverbs_resize_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800325 __u64 response;
326 __u32 cq_handle;
327 __u32 cqe;
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700330};
331struct ib_uverbs_resize_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800332 __u32 cqe;
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 __u32 reserved;
335 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700336};
337struct ib_uverbs_poll_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 __u32 cq_handle;
341 __u32 ne;
Ben Cheng655a7c02013-10-16 16:09:24 -0700342};
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700344struct ib_uverbs_wc {
Tao Baod7db5942015-01-28 10:07:51 -0800345 __u64 wr_id;
346 __u32 status;
347 __u32 opcode;
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 __u32 vendor_err;
350 __u32 byte_len;
351 union {
352 __u32 imm_data;
Christopher Ferris82d75042015-01-26 10:57:07 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 __u32 invalidate_rkey;
355 } ex;
356 __u32 qp_num;
357 __u32 src_qp;
Christopher Ferris82d75042015-01-26 10:57:07 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800359 __u32 wc_flags;
360 __u16 pkey_index;
361 __u16 slid;
362 __u8 sl;
Christopher Ferris82d75042015-01-26 10:57:07 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 __u8 dlid_path_bits;
365 __u8 port_num;
366 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700367};
Christopher Ferris82d75042015-01-26 10:57:07 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700369struct ib_uverbs_poll_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800370 __u32 count;
371 __u32 reserved;
372 struct ib_uverbs_wc wc[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374};
Ben Cheng655a7c02013-10-16 16:09:24 -0700375struct ib_uverbs_req_notify_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800376 __u32 cq_handle;
377 __u32 solicited_only;
Christopher Ferris82d75042015-01-26 10:57:07 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700379};
Ben Cheng655a7c02013-10-16 16:09:24 -0700380struct ib_uverbs_destroy_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800381 __u64 response;
382 __u32 cq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800384 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700385};
386struct ib_uverbs_destroy_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800387 __u32 comp_events_reported;
Christopher Ferris82d75042015-01-26 10:57:07 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389 __u32 async_events_reported;
Ben Cheng655a7c02013-10-16 16:09:24 -0700390};
391struct ib_uverbs_global_route {
Tao Baod7db5942015-01-28 10:07:51 -0800392 __u8 dgid[16];
Christopher Ferris82d75042015-01-26 10:57:07 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 __u32 flow_label;
395 __u8 sgid_index;
396 __u8 hop_limit;
397 __u8 traffic_class;
Christopher Ferris82d75042015-01-26 10:57:07 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700400};
401struct ib_uverbs_ah_attr {
Tao Baod7db5942015-01-28 10:07:51 -0800402 struct ib_uverbs_global_route grh;
Christopher Ferris82d75042015-01-26 10:57:07 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 __u16 dlid;
405 __u8 sl;
406 __u8 src_path_bits;
407 __u8 static_rate;
Christopher Ferris82d75042015-01-26 10:57:07 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800409 __u8 is_global;
410 __u8 port_num;
411 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700412};
Christopher Ferris82d75042015-01-26 10:57:07 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700414struct ib_uverbs_qp_attr {
Tao Baod7db5942015-01-28 10:07:51 -0800415 __u32 qp_attr_mask;
416 __u32 qp_state;
417 __u32 cur_qp_state;
Christopher Ferris82d75042015-01-26 10:57:07 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800419 __u32 path_mtu;
420 __u32 path_mig_state;
421 __u32 qkey;
422 __u32 rq_psn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 __u32 sq_psn;
425 __u32 dest_qp_num;
426 __u32 qp_access_flags;
427 struct ib_uverbs_ah_attr ah_attr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800429 struct ib_uverbs_ah_attr alt_ah_attr;
430 __u32 max_send_wr;
431 __u32 max_recv_wr;
432 __u32 max_send_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800434 __u32 max_recv_sge;
435 __u32 max_inline_data;
436 __u16 pkey_index;
437 __u16 alt_pkey_index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800439 __u8 en_sqd_async_notify;
440 __u8 sq_draining;
441 __u8 max_rd_atomic;
442 __u8 max_dest_rd_atomic;
Christopher Ferris82d75042015-01-26 10:57:07 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444 __u8 min_rnr_timer;
445 __u8 port_num;
446 __u8 timeout;
447 __u8 retry_cnt;
Christopher Ferris82d75042015-01-26 10:57:07 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800449 __u8 rnr_retry;
450 __u8 alt_port_num;
451 __u8 alt_timeout;
452 __u8 reserved[5];
Christopher Ferris82d75042015-01-26 10:57:07 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700454};
Ben Cheng655a7c02013-10-16 16:09:24 -0700455struct ib_uverbs_create_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800456 __u64 response;
457 __u64 user_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459 __u32 pd_handle;
460 __u32 send_cq_handle;
461 __u32 recv_cq_handle;
462 __u32 srq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800464 __u32 max_send_wr;
465 __u32 max_recv_wr;
466 __u32 max_send_sge;
467 __u32 max_recv_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800469 __u32 max_inline_data;
470 __u8 sq_sig_all;
471 __u8 qp_type;
472 __u8 is_srq;
Christopher Ferris82d75042015-01-26 10:57:07 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800474 __u8 reserved;
475 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700476};
477struct ib_uverbs_open_qp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800479 __u64 response;
480 __u64 user_handle;
481 __u32 pd_handle;
482 __u32 qpn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800484 __u8 qp_type;
485 __u8 reserved[7];
486 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700487};
Christopher Ferris82d75042015-01-26 10:57:07 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700489struct ib_uverbs_create_qp_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800490 __u32 qp_handle;
491 __u32 qpn;
492 __u32 max_send_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800494 __u32 max_recv_wr;
495 __u32 max_send_sge;
496 __u32 max_recv_sge;
497 __u32 max_inline_data;
Christopher Ferris82d75042015-01-26 10:57:07 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800499 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700500};
501struct ib_uverbs_qp_dest {
Tao Baod7db5942015-01-28 10:07:51 -0800502 __u8 dgid[16];
Christopher Ferris82d75042015-01-26 10:57:07 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800504 __u32 flow_label;
505 __u16 dlid;
506 __u16 reserved;
507 __u8 sgid_index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800509 __u8 hop_limit;
510 __u8 traffic_class;
511 __u8 sl;
512 __u8 src_path_bits;
Christopher Ferris82d75042015-01-26 10:57:07 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800514 __u8 static_rate;
515 __u8 is_global;
516 __u8 port_num;
Ben Cheng655a7c02013-10-16 16:09:24 -0700517};
Christopher Ferris82d75042015-01-26 10:57:07 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700519struct ib_uverbs_query_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800520 __u64 response;
521 __u32 qp_handle;
522 __u32 attr_mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800524 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700525};
526struct ib_uverbs_query_qp_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800527 struct ib_uverbs_qp_dest dest;
Christopher Ferris82d75042015-01-26 10:57:07 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800529 struct ib_uverbs_qp_dest alt_dest;
530 __u32 max_send_wr;
531 __u32 max_recv_wr;
532 __u32 max_send_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800534 __u32 max_recv_sge;
535 __u32 max_inline_data;
536 __u32 qkey;
537 __u32 rq_psn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800539 __u32 sq_psn;
540 __u32 dest_qp_num;
541 __u32 qp_access_flags;
542 __u16 pkey_index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800544 __u16 alt_pkey_index;
545 __u8 qp_state;
546 __u8 cur_qp_state;
547 __u8 path_mtu;
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 __u8 path_mig_state;
550 __u8 sq_draining;
551 __u8 max_rd_atomic;
552 __u8 max_dest_rd_atomic;
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 min_rnr_timer;
555 __u8 port_num;
556 __u8 timeout;
557 __u8 retry_cnt;
Christopher Ferris82d75042015-01-26 10:57:07 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800559 __u8 rnr_retry;
560 __u8 alt_port_num;
561 __u8 alt_timeout;
562 __u8 sq_sig_all;
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 __u8 reserved[5];
565 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700566};
567struct ib_uverbs_modify_qp {
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 struct ib_uverbs_qp_dest dest;
570 struct ib_uverbs_qp_dest alt_dest;
571 __u32 qp_handle;
572 __u32 attr_mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800574 __u32 qkey;
575 __u32 rq_psn;
576 __u32 sq_psn;
577 __u32 dest_qp_num;
Christopher Ferris82d75042015-01-26 10:57:07 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800579 __u32 qp_access_flags;
580 __u16 pkey_index;
581 __u16 alt_pkey_index;
582 __u8 qp_state;
Christopher Ferris82d75042015-01-26 10:57:07 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800584 __u8 cur_qp_state;
585 __u8 path_mtu;
586 __u8 path_mig_state;
587 __u8 en_sqd_async_notify;
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800589 __u8 max_rd_atomic;
590 __u8 max_dest_rd_atomic;
591 __u8 min_rnr_timer;
592 __u8 port_num;
Christopher Ferris82d75042015-01-26 10:57:07 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800594 __u8 timeout;
595 __u8 retry_cnt;
596 __u8 rnr_retry;
597 __u8 alt_port_num;
Christopher Ferris82d75042015-01-26 10:57:07 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800599 __u8 alt_timeout;
600 __u8 reserved[2];
601 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700602};
Christopher Ferris82d75042015-01-26 10:57:07 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700604struct ib_uverbs_modify_qp_resp {
Ben Cheng655a7c02013-10-16 16:09:24 -0700605};
606struct ib_uverbs_destroy_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800607 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800609 __u32 qp_handle;
610 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700611};
612struct ib_uverbs_destroy_qp_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800614 __u32 events_reported;
Ben Cheng655a7c02013-10-16 16:09:24 -0700615};
616struct ib_uverbs_sge {
Tao Baod7db5942015-01-28 10:07:51 -0800617 __u64 addr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800619 __u32 length;
620 __u32 lkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700621};
622struct ib_uverbs_send_wr {
Christopher Ferris82d75042015-01-26 10:57:07 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800624 __u64 wr_id;
625 __u32 num_sge;
626 __u32 opcode;
627 __u32 send_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800629 union {
630 __u32 imm_data;
631 __u32 invalidate_rkey;
632 } ex;
Christopher Ferris82d75042015-01-26 10:57:07 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800634 union {
635 struct {
636 __u64 remote_addr;
637 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800639 __u32 reserved;
640 } rdma;
641 struct {
642 __u64 remote_addr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800644 __u64 compare_add;
645 __u64 swap;
646 __u32 rkey;
647 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800649 } atomic;
650 struct {
651 __u32 ah;
652 __u32 remote_qpn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800654 __u32 remote_qkey;
655 __u32 reserved;
656 } ud;
657 } wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700659};
Ben Cheng655a7c02013-10-16 16:09:24 -0700660struct ib_uverbs_post_send {
Tao Baod7db5942015-01-28 10:07:51 -0800661 __u64 response;
662 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800664 __u32 wr_count;
665 __u32 sge_count;
666 __u32 wqe_size;
667 struct ib_uverbs_send_wr send_wr[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700669};
Ben Cheng655a7c02013-10-16 16:09:24 -0700670struct ib_uverbs_post_send_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800671 __u32 bad_wr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700672};
Christopher Ferris82d75042015-01-26 10:57:07 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700674struct ib_uverbs_recv_wr {
Tao Baod7db5942015-01-28 10:07:51 -0800675 __u64 wr_id;
676 __u32 num_sge;
677 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700679};
Ben Cheng655a7c02013-10-16 16:09:24 -0700680struct ib_uverbs_post_recv {
Tao Baod7db5942015-01-28 10:07:51 -0800681 __u64 response;
682 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800684 __u32 wr_count;
685 __u32 sge_count;
686 __u32 wqe_size;
687 struct ib_uverbs_recv_wr recv_wr[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700689};
Ben Cheng655a7c02013-10-16 16:09:24 -0700690struct ib_uverbs_post_recv_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800691 __u32 bad_wr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700692};
Christopher Ferris82d75042015-01-26 10:57:07 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700694struct ib_uverbs_post_srq_recv {
Tao Baod7db5942015-01-28 10:07:51 -0800695 __u64 response;
696 __u32 srq_handle;
697 __u32 wr_count;
Christopher Ferris82d75042015-01-26 10:57:07 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800699 __u32 sge_count;
700 __u32 wqe_size;
701 struct ib_uverbs_recv_wr recv[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700702};
Christopher Ferris82d75042015-01-26 10:57:07 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700704struct ib_uverbs_post_srq_recv_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800705 __u32 bad_wr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700706};
707struct ib_uverbs_create_ah {
Christopher Ferris82d75042015-01-26 10:57:07 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800709 __u64 response;
710 __u64 user_handle;
711 __u32 pd_handle;
712 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800714 struct ib_uverbs_ah_attr attr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700715};
716struct ib_uverbs_create_ah_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800717 __u32 ah_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700719};
Ben Cheng655a7c02013-10-16 16:09:24 -0700720struct ib_uverbs_destroy_ah {
Tao Baod7db5942015-01-28 10:07:51 -0800721 __u32 ah_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700722};
Christopher Ferris82d75042015-01-26 10:57:07 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700724struct ib_uverbs_attach_mcast {
Tao Baod7db5942015-01-28 10:07:51 -0800725 __u8 gid[16];
726 __u32 qp_handle;
727 __u16 mlid;
Christopher Ferris82d75042015-01-26 10:57:07 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800729 __u16 reserved;
730 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700731};
732struct ib_uverbs_detach_mcast {
Christopher Ferris82d75042015-01-26 10:57:07 -0800733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800734 __u8 gid[16];
735 __u32 qp_handle;
736 __u16 mlid;
737 __u16 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800739 __u64 driver_data[0];
Christopher Ferris38062f92014-07-09 15:33:25 -0700740};
Christopher Ferris38062f92014-07-09 15:33:25 -0700741struct ib_uverbs_flow_spec_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800742 __u32 type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800744 __u16 size;
745 __u16 reserved;
746 __u64 flow_spec_data[0];
Christopher Ferris38062f92014-07-09 15:33:25 -0700747};
Christopher Ferris82d75042015-01-26 10:57:07 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700749struct ib_uverbs_flow_eth_filter {
Tao Baod7db5942015-01-28 10:07:51 -0800750 __u8 dst_mac[6];
751 __u8 src_mac[6];
752 __be16 ether_type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800754 __be16 vlan_tag;
Christopher Ferris38062f92014-07-09 15:33:25 -0700755};
Christopher Ferris38062f92014-07-09 15:33:25 -0700756struct ib_uverbs_flow_spec_eth {
Tao Baod7db5942015-01-28 10:07:51 -0800757 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800759 struct ib_uverbs_flow_spec_hdr hdr;
760 struct {
761 __u32 type;
762 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800764 __u16 reserved;
765 };
766 };
767 struct ib_uverbs_flow_eth_filter val;
Christopher Ferris82d75042015-01-26 10:57:07 -0800768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800769 struct ib_uverbs_flow_eth_filter mask;
Christopher Ferris38062f92014-07-09 15:33:25 -0700770};
Christopher Ferris38062f92014-07-09 15:33:25 -0700771struct ib_uverbs_flow_ipv4_filter {
Tao Baod7db5942015-01-28 10:07:51 -0800772 __be32 src_ip;
Christopher Ferris82d75042015-01-26 10:57:07 -0800773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800774 __be32 dst_ip;
Christopher Ferris38062f92014-07-09 15:33:25 -0700775};
Christopher Ferris38062f92014-07-09 15:33:25 -0700776struct ib_uverbs_flow_spec_ipv4 {
Tao Baod7db5942015-01-28 10:07:51 -0800777 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800779 struct ib_uverbs_flow_spec_hdr hdr;
780 struct {
781 __u32 type;
782 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800784 __u16 reserved;
785 };
786 };
787 struct ib_uverbs_flow_ipv4_filter val;
Christopher Ferris82d75042015-01-26 10:57:07 -0800788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800789 struct ib_uverbs_flow_ipv4_filter mask;
Christopher Ferris38062f92014-07-09 15:33:25 -0700790};
Christopher Ferris38062f92014-07-09 15:33:25 -0700791struct ib_uverbs_flow_tcp_udp_filter {
Tao Baod7db5942015-01-28 10:07:51 -0800792 __be16 dst_port;
Christopher Ferris82d75042015-01-26 10:57:07 -0800793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800794 __be16 src_port;
Christopher Ferris38062f92014-07-09 15:33:25 -0700795};
Christopher Ferris38062f92014-07-09 15:33:25 -0700796struct ib_uverbs_flow_spec_tcp_udp {
Tao Baod7db5942015-01-28 10:07:51 -0800797 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800799 struct ib_uverbs_flow_spec_hdr hdr;
800 struct {
801 __u32 type;
802 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800804 __u16 reserved;
805 };
806 };
807 struct ib_uverbs_flow_tcp_udp_filter val;
Christopher Ferris82d75042015-01-26 10:57:07 -0800808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800809 struct ib_uverbs_flow_tcp_udp_filter mask;
Christopher Ferris38062f92014-07-09 15:33:25 -0700810};
Christopher Ferris38062f92014-07-09 15:33:25 -0700811struct ib_uverbs_flow_attr {
Tao Baod7db5942015-01-28 10:07:51 -0800812 __u32 type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800814 __u16 size;
815 __u16 priority;
816 __u8 num_of_specs;
817 __u8 reserved[2];
Christopher Ferris82d75042015-01-26 10:57:07 -0800818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800819 __u8 port;
820 __u32 flags;
821 struct ib_uverbs_flow_spec_hdr flow_specs[0];
Christopher Ferris38062f92014-07-09 15:33:25 -0700822};
Christopher Ferris82d75042015-01-26 10:57:07 -0800823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700824struct ib_uverbs_create_flow {
Tao Baod7db5942015-01-28 10:07:51 -0800825 __u32 comp_mask;
826 __u32 qp_handle;
827 struct ib_uverbs_flow_attr flow_attr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700829};
830struct ib_uverbs_create_flow_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800831 __u32 comp_mask;
832 __u32 flow_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700834};
835struct ib_uverbs_destroy_flow {
Tao Baod7db5942015-01-28 10:07:51 -0800836 __u32 comp_mask;
837 __u32 flow_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700839};
840struct ib_uverbs_create_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800841 __u64 response;
842 __u64 user_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800844 __u32 pd_handle;
845 __u32 max_wr;
846 __u32 max_sge;
847 __u32 srq_limit;
Christopher Ferris82d75042015-01-26 10:57:07 -0800848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800849 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700850};
851struct ib_uverbs_create_xsrq {
Tao Baod7db5942015-01-28 10:07:51 -0800852 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800854 __u64 user_handle;
855 __u32 srq_type;
856 __u32 pd_handle;
857 __u32 max_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800859 __u32 max_sge;
860 __u32 srq_limit;
861 __u32 reserved;
862 __u32 xrcd_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800864 __u32 cq_handle;
865 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700866};
867struct ib_uverbs_create_srq_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800869 __u32 srq_handle;
870 __u32 max_wr;
871 __u32 max_sge;
872 __u32 srqn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700874};
875struct ib_uverbs_modify_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800876 __u32 srq_handle;
877 __u32 attr_mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800879 __u32 max_wr;
880 __u32 srq_limit;
881 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700882};
Christopher Ferris82d75042015-01-26 10:57:07 -0800883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700884struct ib_uverbs_query_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800885 __u64 response;
886 __u32 srq_handle;
887 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800889 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700890};
891struct ib_uverbs_query_srq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800892 __u32 max_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800894 __u32 max_sge;
895 __u32 srq_limit;
896 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700897};
Christopher Ferris82d75042015-01-26 10:57:07 -0800898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700899struct ib_uverbs_destroy_srq {
Tao Baod7db5942015-01-28 10:07:51 -0800900 __u64 response;
901 __u32 srq_handle;
902 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700904};
905struct ib_uverbs_destroy_srq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800906 __u32 events_reported;
Ben Cheng655a7c02013-10-16 16:09:24 -0700907};
Christopher Ferris82d75042015-01-26 10:57:07 -0800908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700909#endif