blob: 7368ad6e3943c4da670b53ee952704fcaeb6fd99 [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,
Christopher Ferris49f525c2016-12-12 14:55:36 -080086 IB_USER_VERBS_EX_CMD_CREATE_WQ,
87 IB_USER_VERBS_EX_CMD_MODIFY_WQ,
Christopher Ferris05d08e92016-02-04 13:16:38 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080089 IB_USER_VERBS_EX_CMD_DESTROY_WQ,
90 IB_USER_VERBS_EX_CMD_CREATE_RWQ_IND_TBL,
91 IB_USER_VERBS_EX_CMD_DESTROY_RWQ_IND_TBL
92};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94struct ib_uverbs_async_event_desc {
Tao Baod7db5942015-01-28 10:07:51 -080095 __u64 element;
96 __u32 event_type;
97 __u32 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -080099};
Ben Cheng655a7c02013-10-16 16:09:24 -0700100struct ib_uverbs_comp_event_desc {
Tao Baod7db5942015-01-28 10:07:51 -0800101 __u64 cq_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700102};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800104#define IB_USER_VERBS_CMD_COMMAND_MASK 0xff
Christopher Ferris38062f92014-07-09 15:33:25 -0700105#define IB_USER_VERBS_CMD_FLAGS_MASK 0xff000000u
106#define IB_USER_VERBS_CMD_FLAGS_SHIFT 24
107#define IB_USER_VERBS_CMD_FLAG_EXTENDED 0x80
Christopher Ferris05d08e92016-02-04 13:16:38 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800109struct ib_uverbs_cmd_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800110 __u32 command;
111 __u16 in_words;
112 __u16 out_words;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800114};
Christopher Ferris38062f92014-07-09 15:33:25 -0700115struct ib_uverbs_ex_cmd_hdr {
Tao Baod7db5942015-01-28 10:07:51 -0800116 __u64 response;
117 __u16 provider_in_words;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800119 __u16 provider_out_words;
Tao Baod7db5942015-01-28 10:07:51 -0800120 __u32 cmd_hdr_reserved;
Christopher Ferris38062f92014-07-09 15:33:25 -0700121};
Ben Cheng655a7c02013-10-16 16:09:24 -0700122struct ib_uverbs_get_context {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800124 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800125 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700126};
Ben Cheng655a7c02013-10-16 16:09:24 -0700127struct ib_uverbs_get_context_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800129 __u32 async_fd;
Tao Baod7db5942015-01-28 10:07:51 -0800130 __u32 num_comp_vectors;
Ben Cheng655a7c02013-10-16 16:09:24 -0700131};
Ben Cheng655a7c02013-10-16 16:09:24 -0700132struct ib_uverbs_query_device {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800134 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800135 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700136};
Ben Cheng655a7c02013-10-16 16:09:24 -0700137struct ib_uverbs_query_device_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800139 __u64 fw_ver;
Tao Baod7db5942015-01-28 10:07:51 -0800140 __be64 node_guid;
141 __be64 sys_image_guid;
142 __u64 max_mr_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800144 __u64 page_size_cap;
Tao Baod7db5942015-01-28 10:07:51 -0800145 __u32 vendor_id;
146 __u32 vendor_part_id;
147 __u32 hw_ver;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800149 __u32 max_qp;
Tao Baod7db5942015-01-28 10:07:51 -0800150 __u32 max_qp_wr;
151 __u32 device_cap_flags;
152 __u32 max_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800154 __u32 max_sge_rd;
Tao Baod7db5942015-01-28 10:07:51 -0800155 __u32 max_cq;
156 __u32 max_cqe;
157 __u32 max_mr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800159 __u32 max_pd;
Tao Baod7db5942015-01-28 10:07:51 -0800160 __u32 max_qp_rd_atom;
161 __u32 max_ee_rd_atom;
162 __u32 max_res_rd_atom;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800164 __u32 max_qp_init_rd_atom;
Tao Baod7db5942015-01-28 10:07:51 -0800165 __u32 max_ee_init_rd_atom;
166 __u32 atomic_cap;
167 __u32 max_ee;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800169 __u32 max_rdd;
Tao Baod7db5942015-01-28 10:07:51 -0800170 __u32 max_mw;
171 __u32 max_raw_ipv6_qp;
172 __u32 max_raw_ethy_qp;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800174 __u32 max_mcast_grp;
Tao Baod7db5942015-01-28 10:07:51 -0800175 __u32 max_mcast_qp_attach;
176 __u32 max_total_mcast_qp_attach;
177 __u32 max_ah;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800179 __u32 max_fmr;
Tao Baod7db5942015-01-28 10:07:51 -0800180 __u32 max_map_per_fmr;
181 __u32 max_srq;
182 __u32 max_srq_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800184 __u32 max_srq_sge;
Tao Baod7db5942015-01-28 10:07:51 -0800185 __u16 max_pkeys;
186 __u8 local_ca_ack_delay;
187 __u8 phys_port_cnt;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800189 __u8 reserved[4];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800190};
191struct ib_uverbs_ex_query_device {
192 __u32 comp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800194 __u32 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800195};
196struct ib_uverbs_odp_caps {
197 __u64 general_caps;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800199 struct {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800200 __u32 rc_odp_caps;
201 __u32 uc_odp_caps;
202 __u32 ud_odp_caps;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800204 } per_transport_caps;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800205 __u32 reserved;
206};
207struct ib_uverbs_ex_query_device_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800209 struct ib_uverbs_query_device_resp base;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800210 __u32 comp_mask;
211 __u32 response_length;
212 struct ib_uverbs_odp_caps odp_caps;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800214 __u64 timestamp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800215 __u64 hca_core_clock;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700216 __u64 device_cap_flags_ex;
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 */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800219struct ib_uverbs_query_port {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700220 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800221 __u8 port_num;
222 __u8 reserved[7];
Christopher Ferris38062f92014-07-09 15:33:25 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800224 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700225};
Ben Cheng655a7c02013-10-16 16:09:24 -0700226struct ib_uverbs_query_port_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800227 __u32 port_cap_flags;
Christopher Ferris38062f92014-07-09 15:33:25 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800229 __u32 max_msg_sz;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700230 __u32 bad_pkey_cntr;
Tao Baod7db5942015-01-28 10:07:51 -0800231 __u32 qkey_viol_cntr;
232 __u32 gid_tbl_len;
Christopher Ferris38062f92014-07-09 15:33:25 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800234 __u16 pkey_tbl_len;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700235 __u16 lid;
Tao Baod7db5942015-01-28 10:07:51 -0800236 __u16 sm_lid;
237 __u8 state;
Christopher Ferris38062f92014-07-09 15:33:25 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800239 __u8 max_mtu;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700240 __u8 active_mtu;
Tao Baod7db5942015-01-28 10:07:51 -0800241 __u8 lmc;
242 __u8 max_vl_num;
Christopher Ferris38062f92014-07-09 15:33:25 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800244 __u8 sm_sl;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700245 __u8 subnet_timeout;
Tao Baod7db5942015-01-28 10:07:51 -0800246 __u8 init_type_reply;
247 __u8 active_width;
Christopher Ferris38062f92014-07-09 15:33:25 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800249 __u8 active_speed;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700250 __u8 phys_state;
Tao Baod7db5942015-01-28 10:07:51 -0800251 __u8 link_layer;
252 __u8 reserved[2];
Christopher Ferris38062f92014-07-09 15:33:25 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800254};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700255struct ib_uverbs_alloc_pd {
Tao Baod7db5942015-01-28 10:07:51 -0800256 __u64 response;
257 __u64 driver_data[0];
Christopher Ferris38062f92014-07-09 15:33:25 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800259};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700260struct ib_uverbs_alloc_pd_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800261 __u32 pd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700262};
Christopher Ferris38062f92014-07-09 15:33:25 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800264struct ib_uverbs_dealloc_pd {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700265 __u32 pd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700266};
267struct ib_uverbs_open_xrcd {
Christopher Ferris38062f92014-07-09 15:33:25 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800269 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700270 __u32 fd;
Tao Baod7db5942015-01-28 10:07:51 -0800271 __u32 oflags;
272 __u64 driver_data[0];
Christopher Ferris38062f92014-07-09 15:33:25 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800274};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700275struct ib_uverbs_open_xrcd_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800276 __u32 xrcd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700277};
Christopher Ferris38062f92014-07-09 15:33:25 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800279struct ib_uverbs_close_xrcd {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700280 __u32 xrcd_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700281};
282struct ib_uverbs_reg_mr {
Christopher Ferris38062f92014-07-09 15:33:25 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800284 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700285 __u64 start;
Tao Baod7db5942015-01-28 10:07:51 -0800286 __u64 length;
287 __u64 hca_va;
Christopher Ferris38062f92014-07-09 15:33:25 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800289 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700290 __u32 access_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800291 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700292};
Christopher Ferris38062f92014-07-09 15:33:25 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800294struct ib_uverbs_reg_mr_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700295 __u32 mr_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800296 __u32 lkey;
297 __u32 rkey;
Christopher Ferris38062f92014-07-09 15:33:25 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800299};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700300struct ib_uverbs_rereg_mr {
Tao Baod7db5942015-01-28 10:07:51 -0800301 __u64 response;
302 __u32 mr_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800304 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700305 __u64 start;
Tao Baod7db5942015-01-28 10:07:51 -0800306 __u64 length;
307 __u64 hca_va;
Christopher Ferris82d75042015-01-26 10:57:07 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800309 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700310 __u32 access_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800311};
312struct ib_uverbs_rereg_mr_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800314 __u32 lkey;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700315 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800316};
317struct ib_uverbs_dereg_mr {
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800319 __u32 mr_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700320};
Ben Cheng655a7c02013-10-16 16:09:24 -0700321struct ib_uverbs_alloc_mw {
Tao Baod7db5942015-01-28 10:07:51 -0800322 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800324 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700325 __u8 mw_type;
Tao Baod7db5942015-01-28 10:07:51 -0800326 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700327};
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800329struct ib_uverbs_alloc_mw_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700330 __u32 mw_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800331 __u32 rkey;
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 */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800334struct ib_uverbs_dealloc_mw {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700335 __u32 mw_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700336};
Ben Cheng655a7c02013-10-16 16:09:24 -0700337struct ib_uverbs_create_comp_channel {
Christopher Ferris82d75042015-01-26 10:57:07 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800339 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700340};
Ben Cheng655a7c02013-10-16 16:09:24 -0700341struct ib_uverbs_create_comp_channel_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800342 __u32 fd;
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800344};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700345struct ib_uverbs_create_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800346 __u64 response;
347 __u64 user_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800349 __u32 cqe;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700350 __u32 comp_vector;
Tao Baod7db5942015-01-28 10:07:51 -0800351 __s32 comp_channel;
352 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800354 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700355};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800356struct ib_uverbs_ex_create_cq {
357 __u64 user_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800359 __u32 cqe;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700360 __u32 comp_vector;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800361 __s32 comp_channel;
362 __u32 comp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800364 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700365 __u32 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800366};
Ben Cheng655a7c02013-10-16 16:09:24 -0700367struct ib_uverbs_create_cq_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800369 __u32 cq_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700370 __u32 cqe;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800371};
372struct ib_uverbs_ex_create_cq_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800374 struct ib_uverbs_create_cq_resp base;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700375 __u32 comp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800376 __u32 response_length;
377};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800379struct ib_uverbs_resize_cq {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700380 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800381 __u32 cq_handle;
382 __u32 cqe;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800384 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700385};
Ben Cheng655a7c02013-10-16 16:09:24 -0700386struct ib_uverbs_resize_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800387 __u32 cqe;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800389 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700390 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700391};
392struct ib_uverbs_poll_cq {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800394 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700395 __u32 cq_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800396 __u32 ne;
Ben Cheng655a7c02013-10-16 16:09:24 -0700397};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800399struct ib_uverbs_wc {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700400 __u64 wr_id;
Tao Baod7db5942015-01-28 10:07:51 -0800401 __u32 status;
402 __u32 opcode;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800404 __u32 vendor_err;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700405 __u32 byte_len;
Tao Baod7db5942015-01-28 10:07:51 -0800406 union {
407 __u32 imm_data;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800409 __u32 invalidate_rkey;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700410 } ex;
Tao Baod7db5942015-01-28 10:07:51 -0800411 __u32 qp_num;
412 __u32 src_qp;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800414 __u32 wc_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700415 __u16 pkey_index;
Tao Baod7db5942015-01-28 10:07:51 -0800416 __u16 slid;
417 __u8 sl;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800419 __u8 dlid_path_bits;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700420 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800421 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700422};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800424struct ib_uverbs_poll_cq_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700425 __u32 count;
Tao Baod7db5942015-01-28 10:07:51 -0800426 __u32 reserved;
427 struct ib_uverbs_wc wc[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800429};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700430struct ib_uverbs_req_notify_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800431 __u32 cq_handle;
432 __u32 solicited_only;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800434};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700435struct ib_uverbs_destroy_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800436 __u64 response;
437 __u32 cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800439 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700440};
Ben Cheng655a7c02013-10-16 16:09:24 -0700441struct ib_uverbs_destroy_cq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800442 __u32 comp_events_reported;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800444 __u32 async_events_reported;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700445};
Ben Cheng655a7c02013-10-16 16:09:24 -0700446struct ib_uverbs_global_route {
Tao Baod7db5942015-01-28 10:07:51 -0800447 __u8 dgid[16];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800449 __u32 flow_label;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700450 __u8 sgid_index;
Tao Baod7db5942015-01-28 10:07:51 -0800451 __u8 hop_limit;
452 __u8 traffic_class;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800454 __u8 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700455};
Ben Cheng655a7c02013-10-16 16:09:24 -0700456struct ib_uverbs_ah_attr {
Tao Baod7db5942015-01-28 10:07:51 -0800457 struct ib_uverbs_global_route grh;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800459 __u16 dlid;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700460 __u8 sl;
Tao Baod7db5942015-01-28 10:07:51 -0800461 __u8 src_path_bits;
462 __u8 static_rate;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800464 __u8 is_global;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700465 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800466 __u8 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700467};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800469struct ib_uverbs_qp_attr {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700470 __u32 qp_attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800471 __u32 qp_state;
472 __u32 cur_qp_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800474 __u32 path_mtu;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700475 __u32 path_mig_state;
Tao Baod7db5942015-01-28 10:07:51 -0800476 __u32 qkey;
477 __u32 rq_psn;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800479 __u32 sq_psn;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700480 __u32 dest_qp_num;
Tao Baod7db5942015-01-28 10:07:51 -0800481 __u32 qp_access_flags;
482 struct ib_uverbs_ah_attr ah_attr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800484 struct ib_uverbs_ah_attr alt_ah_attr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700485 __u32 max_send_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800486 __u32 max_recv_wr;
487 __u32 max_send_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800489 __u32 max_recv_sge;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700490 __u32 max_inline_data;
Tao Baod7db5942015-01-28 10:07:51 -0800491 __u16 pkey_index;
492 __u16 alt_pkey_index;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800494 __u8 en_sqd_async_notify;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700495 __u8 sq_draining;
Tao Baod7db5942015-01-28 10:07:51 -0800496 __u8 max_rd_atomic;
497 __u8 max_dest_rd_atomic;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800499 __u8 min_rnr_timer;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700500 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800501 __u8 timeout;
502 __u8 retry_cnt;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800504 __u8 rnr_retry;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700505 __u8 alt_port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800506 __u8 alt_timeout;
507 __u8 reserved[5];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800509};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700510struct ib_uverbs_create_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800511 __u64 response;
512 __u64 user_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800514 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700515 __u32 send_cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800516 __u32 recv_cq_handle;
517 __u32 srq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800519 __u32 max_send_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700520 __u32 max_recv_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800521 __u32 max_send_sge;
522 __u32 max_recv_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800524 __u32 max_inline_data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700525 __u8 sq_sig_all;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800526 __u8 qp_type;
527 __u8 is_srq;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800529 __u8 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700530 __u64 driver_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800531};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800532enum ib_uverbs_create_qp_mask {
533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
534 IB_UVERBS_CREATE_QP_MASK_IND_TABLE = 1UL << 0,
535};
536enum {
537 IB_UVERBS_CREATE_QP_SUP_COMP_MASK = IB_UVERBS_CREATE_QP_MASK_IND_TABLE,
538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
539};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800540struct ib_uverbs_ex_create_qp {
541 __u64 user_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700542 __u32 pd_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800544 __u32 send_cq_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800545 __u32 recv_cq_handle;
546 __u32 srq_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700547 __u32 max_send_wr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800549 __u32 max_recv_wr;
550 __u32 max_send_sge;
551 __u32 max_recv_sge;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700552 __u32 max_inline_data;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800554 __u8 sq_sig_all;
555 __u8 qp_type;
556 __u8 is_srq;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700557 __u8 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800559 __u32 comp_mask;
560 __u32 create_flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800561 __u32 rwq_ind_tbl_handle;
562 __u32 reserved1;
Christopher Ferris82d75042015-01-26 10:57:07 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800564};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700565struct ib_uverbs_open_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800566 __u64 response;
567 __u64 user_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800569 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700570 __u32 qpn;
Tao Baod7db5942015-01-28 10:07:51 -0800571 __u8 qp_type;
572 __u8 reserved[7];
Christopher Ferris82d75042015-01-26 10:57:07 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800574 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700575};
Ben Cheng655a7c02013-10-16 16:09:24 -0700576struct ib_uverbs_create_qp_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800577 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800579 __u32 qpn;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700580 __u32 max_send_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800581 __u32 max_recv_wr;
582 __u32 max_send_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800584 __u32 max_recv_sge;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700585 __u32 max_inline_data;
Tao Baod7db5942015-01-28 10:07:51 -0800586 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700587};
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800589struct ib_uverbs_ex_create_qp_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700590 struct ib_uverbs_create_qp_resp base;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800591 __u32 comp_mask;
592 __u32 response_length;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800594};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700595struct ib_uverbs_qp_dest {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800596 __u8 dgid[16];
Tao Baod7db5942015-01-28 10:07:51 -0800597 __u32 flow_label;
Christopher Ferris82d75042015-01-26 10:57:07 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800599 __u16 dlid;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700600 __u16 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800601 __u8 sgid_index;
Tao Baod7db5942015-01-28 10:07:51 -0800602 __u8 hop_limit;
Christopher Ferris82d75042015-01-26 10:57:07 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800604 __u8 traffic_class;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700605 __u8 sl;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800606 __u8 src_path_bits;
Tao Baod7db5942015-01-28 10:07:51 -0800607 __u8 static_rate;
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800609 __u8 is_global;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700610 __u8 port_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800611};
Ben Cheng655a7c02013-10-16 16:09:24 -0700612struct ib_uverbs_query_qp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800614 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700615 __u32 qp_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800616 __u32 attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800617 __u64 driver_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800619};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700620struct ib_uverbs_query_qp_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800621 struct ib_uverbs_qp_dest dest;
Tao Baod7db5942015-01-28 10:07:51 -0800622 struct ib_uverbs_qp_dest alt_dest;
Christopher Ferris82d75042015-01-26 10:57:07 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800624 __u32 max_send_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700625 __u32 max_recv_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800626 __u32 max_send_sge;
Tao Baod7db5942015-01-28 10:07:51 -0800627 __u32 max_recv_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800629 __u32 max_inline_data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700630 __u32 qkey;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800631 __u32 rq_psn;
Tao Baod7db5942015-01-28 10:07:51 -0800632 __u32 sq_psn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800634 __u32 dest_qp_num;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700635 __u32 qp_access_flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800636 __u16 pkey_index;
Tao Baod7db5942015-01-28 10:07:51 -0800637 __u16 alt_pkey_index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800639 __u8 qp_state;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700640 __u8 cur_qp_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800641 __u8 path_mtu;
Tao Baod7db5942015-01-28 10:07:51 -0800642 __u8 path_mig_state;
Christopher Ferris82d75042015-01-26 10:57:07 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800644 __u8 sq_draining;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700645 __u8 max_rd_atomic;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800646 __u8 max_dest_rd_atomic;
Tao Baod7db5942015-01-28 10:07:51 -0800647 __u8 min_rnr_timer;
Christopher Ferris82d75042015-01-26 10:57:07 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800649 __u8 port_num;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700650 __u8 timeout;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800651 __u8 retry_cnt;
Tao Baod7db5942015-01-28 10:07:51 -0800652 __u8 rnr_retry;
Christopher Ferris82d75042015-01-26 10:57:07 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800654 __u8 alt_port_num;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700655 __u8 alt_timeout;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800656 __u8 sq_sig_all;
Tao Baod7db5942015-01-28 10:07:51 -0800657 __u8 reserved[5];
Christopher Ferris82d75042015-01-26 10:57:07 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800659 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700660};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800661struct ib_uverbs_modify_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800662 struct ib_uverbs_qp_dest dest;
Christopher Ferris82d75042015-01-26 10:57:07 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800664 struct ib_uverbs_qp_dest alt_dest;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700665 __u32 qp_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800666 __u32 attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800667 __u32 qkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800669 __u32 rq_psn;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700670 __u32 sq_psn;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800671 __u32 dest_qp_num;
Tao Baod7db5942015-01-28 10:07:51 -0800672 __u32 qp_access_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800674 __u16 pkey_index;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700675 __u16 alt_pkey_index;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800676 __u8 qp_state;
Tao Baod7db5942015-01-28 10:07:51 -0800677 __u8 cur_qp_state;
Christopher Ferris82d75042015-01-26 10:57:07 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800679 __u8 path_mtu;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700680 __u8 path_mig_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800681 __u8 en_sqd_async_notify;
Tao Baod7db5942015-01-28 10:07:51 -0800682 __u8 max_rd_atomic;
Christopher Ferris82d75042015-01-26 10:57:07 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800684 __u8 max_dest_rd_atomic;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700685 __u8 min_rnr_timer;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800686 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800687 __u8 timeout;
Christopher Ferris82d75042015-01-26 10:57:07 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800689 __u8 retry_cnt;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700690 __u8 rnr_retry;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800691 __u8 alt_port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800692 __u8 alt_timeout;
Christopher Ferris82d75042015-01-26 10:57:07 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800694 __u8 reserved[2];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700695 __u64 driver_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800696};
Ben Cheng655a7c02013-10-16 16:09:24 -0700697struct ib_uverbs_modify_qp_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800699};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700700struct ib_uverbs_destroy_qp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800701 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800702 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800704 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700705};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800706struct ib_uverbs_destroy_qp_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800707 __u32 events_reported;
Christopher Ferris82d75042015-01-26 10:57:07 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800709};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700710struct ib_uverbs_sge {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800711 __u64 addr;
Tao Baod7db5942015-01-28 10:07:51 -0800712 __u32 length;
Christopher Ferris82d75042015-01-26 10:57:07 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800714 __u32 lkey;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700715};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800716struct ib_uverbs_send_wr {
Tao Baod7db5942015-01-28 10:07:51 -0800717 __u64 wr_id;
Christopher Ferris82d75042015-01-26 10:57:07 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800719 __u32 num_sge;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700720 __u32 opcode;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800721 __u32 send_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800722 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800724 __u32 imm_data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700725 __u32 invalidate_rkey;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800726 } ex;
Tao Baod7db5942015-01-28 10:07:51 -0800727 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800729 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700730 __u64 remote_addr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800731 __u32 rkey;
Tao Baod7db5942015-01-28 10:07:51 -0800732 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800734 } rdma;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700735 struct {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800736 __u64 remote_addr;
Tao Baod7db5942015-01-28 10:07:51 -0800737 __u64 compare_add;
Christopher Ferris82d75042015-01-26 10:57:07 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800739 __u64 swap;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700740 __u32 rkey;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800741 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -0800742 } atomic;
Christopher Ferris82d75042015-01-26 10:57:07 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800744 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700745 __u32 ah;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800746 __u32 remote_qpn;
Tao Baod7db5942015-01-28 10:07:51 -0800747 __u32 remote_qkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800749 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700750 } ud;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800751 } wr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700752};
Christopher Ferris82d75042015-01-26 10:57:07 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800754struct ib_uverbs_post_send {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700755 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800756 __u32 qp_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800757 __u32 wr_count;
Christopher Ferris82d75042015-01-26 10:57:07 -0800758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800759 __u32 sge_count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700760 __u32 wqe_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800761 struct ib_uverbs_send_wr send_wr[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700762};
Christopher Ferris82d75042015-01-26 10:57:07 -0800763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800764struct ib_uverbs_post_send_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700765 __u32 bad_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800766};
Ben Cheng655a7c02013-10-16 16:09:24 -0700767struct ib_uverbs_recv_wr {
Christopher Ferris82d75042015-01-26 10:57:07 -0800768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800769 __u64 wr_id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700770 __u32 num_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800771 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700772};
Christopher Ferris82d75042015-01-26 10:57:07 -0800773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800774struct ib_uverbs_post_recv {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700775 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800776 __u32 qp_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800777 __u32 wr_count;
Christopher Ferris82d75042015-01-26 10:57:07 -0800778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800779 __u32 sge_count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700780 __u32 wqe_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800781 struct ib_uverbs_recv_wr recv_wr[0];
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 Ferris49f525c2016-12-12 14:55:36 -0800784struct ib_uverbs_post_recv_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700785 __u32 bad_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800786};
Ben Cheng655a7c02013-10-16 16:09:24 -0700787struct ib_uverbs_post_srq_recv {
Christopher Ferris82d75042015-01-26 10:57:07 -0800788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800789 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700790 __u32 srq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800791 __u32 wr_count;
Tao Baod7db5942015-01-28 10:07:51 -0800792 __u32 sge_count;
Christopher Ferris82d75042015-01-26 10:57:07 -0800793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800794 __u32 wqe_size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700795 struct ib_uverbs_recv_wr recv[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800796};
Ben Cheng655a7c02013-10-16 16:09:24 -0700797struct ib_uverbs_post_srq_recv_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800799 __u32 bad_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700800};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800801struct ib_uverbs_create_ah {
Tao Baod7db5942015-01-28 10:07:51 -0800802 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800804 __u64 user_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700805 __u32 pd_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800806 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -0800807 struct ib_uverbs_ah_attr attr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800809};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700810struct ib_uverbs_create_ah_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800811 __u32 ah_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700812};
Christopher Ferris82d75042015-01-26 10:57:07 -0800813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800814struct ib_uverbs_destroy_ah {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700815 __u32 ah_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800816};
Ben Cheng655a7c02013-10-16 16:09:24 -0700817struct ib_uverbs_attach_mcast {
Christopher Ferris82d75042015-01-26 10:57:07 -0800818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800819 __u8 gid[16];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700820 __u32 qp_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800821 __u16 mlid;
Tao Baod7db5942015-01-28 10:07:51 -0800822 __u16 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800824 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700825};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800826struct ib_uverbs_detach_mcast {
Tao Baod7db5942015-01-28 10:07:51 -0800827 __u8 gid[16];
Christopher Ferris82d75042015-01-26 10:57:07 -0800828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800829 __u32 qp_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700830 __u16 mlid;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800831 __u16 reserved;
Tao Baod7db5942015-01-28 10:07:51 -0800832 __u64 driver_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800834};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700835struct ib_uverbs_flow_spec_hdr {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800836 __u32 type;
Tao Baod7db5942015-01-28 10:07:51 -0800837 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800839 __u16 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700840 __u64 flow_spec_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800841};
Christopher Ferris38062f92014-07-09 15:33:25 -0700842struct ib_uverbs_flow_eth_filter {
Christopher Ferris82d75042015-01-26 10:57:07 -0800843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800844 __u8 dst_mac[6];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700845 __u8 src_mac[6];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800846 __be16 ether_type;
Tao Baod7db5942015-01-28 10:07:51 -0800847 __be16 vlan_tag;
Christopher Ferris82d75042015-01-26 10:57:07 -0800848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800849};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700850struct ib_uverbs_flow_spec_eth {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800851 union {
Tao Baod7db5942015-01-28 10:07:51 -0800852 struct ib_uverbs_flow_spec_hdr hdr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800854 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700855 __u32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800856 __u16 size;
Tao Baod7db5942015-01-28 10:07:51 -0800857 __u16 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800859 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700860 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800861 struct ib_uverbs_flow_eth_filter val;
Tao Baod7db5942015-01-28 10:07:51 -0800862 struct ib_uverbs_flow_eth_filter mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800864};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700865struct ib_uverbs_flow_ipv4_filter {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800866 __be32 src_ip;
Tao Baod7db5942015-01-28 10:07:51 -0800867 __be32 dst_ip;
Christopher Ferris82d75042015-01-26 10:57:07 -0800868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800869};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700870struct ib_uverbs_flow_spec_ipv4 {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800871 union {
Tao Baod7db5942015-01-28 10:07:51 -0800872 struct ib_uverbs_flow_spec_hdr hdr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800874 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700875 __u32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800876 __u16 size;
Tao Baod7db5942015-01-28 10:07:51 -0800877 __u16 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800879 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700880 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800881 struct ib_uverbs_flow_ipv4_filter val;
Tao Baod7db5942015-01-28 10:07:51 -0800882 struct ib_uverbs_flow_ipv4_filter mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800884};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700885struct ib_uverbs_flow_tcp_udp_filter {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800886 __be16 dst_port;
Tao Baod7db5942015-01-28 10:07:51 -0800887 __be16 src_port;
Christopher Ferris82d75042015-01-26 10:57:07 -0800888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800889};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700890struct ib_uverbs_flow_spec_tcp_udp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800891 union {
Tao Baod7db5942015-01-28 10:07:51 -0800892 struct ib_uverbs_flow_spec_hdr hdr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800894 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700895 __u32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800896 __u16 size;
Tao Baod7db5942015-01-28 10:07:51 -0800897 __u16 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800899 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700900 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800901 struct ib_uverbs_flow_tcp_udp_filter val;
Tao Baod7db5942015-01-28 10:07:51 -0800902 struct ib_uverbs_flow_tcp_udp_filter mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800904};
905struct ib_uverbs_flow_ipv6_filter {
906 __u8 src_ip[16];
907 __u8 dst_ip[16];
908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
909};
910struct ib_uverbs_flow_spec_ipv6 {
911 union {
912 struct ib_uverbs_flow_spec_hdr hdr;
913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
914 struct {
915 __u32 type;
916 __u16 size;
917 __u16 reserved;
918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
919 };
920 };
921 struct ib_uverbs_flow_ipv6_filter val;
922 struct ib_uverbs_flow_ipv6_filter mask;
923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
924};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700925struct ib_uverbs_flow_attr {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800926 __u32 type;
Tao Baod7db5942015-01-28 10:07:51 -0800927 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800929 __u16 priority;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700930 __u8 num_of_specs;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800931 __u8 reserved[2];
Tao Baod7db5942015-01-28 10:07:51 -0800932 __u8 port;
Christopher Ferris82d75042015-01-26 10:57:07 -0800933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800934 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700935 struct ib_uverbs_flow_spec_hdr flow_specs[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800936};
Christopher Ferris38062f92014-07-09 15:33:25 -0700937struct ib_uverbs_create_flow {
Christopher Ferris82d75042015-01-26 10:57:07 -0800938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800939 __u32 comp_mask;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700940 __u32 qp_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800941 struct ib_uverbs_flow_attr flow_attr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700942};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700944struct ib_uverbs_create_flow_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700945 __u32 comp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800946 __u32 flow_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700947};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700949struct ib_uverbs_destroy_flow {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700950 __u32 comp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800951 __u32 flow_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700952};
Christopher Ferris82d75042015-01-26 10:57:07 -0800953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800954struct ib_uverbs_create_srq {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700955 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800956 __u64 user_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800957 __u32 pd_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800959 __u32 max_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700960 __u32 max_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800961 __u32 srq_limit;
Tao Baod7db5942015-01-28 10:07:51 -0800962 __u64 driver_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800964};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700965struct ib_uverbs_create_xsrq {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800966 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800967 __u64 user_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800969 __u32 srq_type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700970 __u32 pd_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800971 __u32 max_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800972 __u32 max_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800974 __u32 srq_limit;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700975 __u32 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800976 __u32 xrcd_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800977 __u32 cq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800979 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700980};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800981struct ib_uverbs_create_srq_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800982 __u32 srq_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800984 __u32 max_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700985 __u32 max_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800986 __u32 srqn;
Ben Cheng655a7c02013-10-16 16:09:24 -0700987};
Christopher Ferris82d75042015-01-26 10:57:07 -0800988/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800989struct ib_uverbs_modify_srq {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700990 __u32 srq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800991 __u32 attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800992 __u32 max_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800993/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800994 __u32 srq_limit;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700995 __u64 driver_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800996};
Ben Cheng655a7c02013-10-16 16:09:24 -0700997struct ib_uverbs_query_srq {
Christopher Ferris82d75042015-01-26 10:57:07 -0800998/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800999 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001000 __u32 srq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -08001001 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -08001002 __u64 driver_data[0];
Christopher Ferris82d75042015-01-26 10:57:07 -08001003/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001004};
Christopher Ferris106b3a82016-08-24 12:15:38 -07001005struct ib_uverbs_query_srq_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -08001006 __u32 max_wr;
Tao Baod7db5942015-01-28 10:07:51 -08001007 __u32 max_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -08001008/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001009 __u32 srq_limit;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001010 __u32 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -08001011};
Ben Cheng655a7c02013-10-16 16:09:24 -07001012struct ib_uverbs_destroy_srq {
Christopher Ferris82d75042015-01-26 10:57:07 -08001013/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001014 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001015 __u32 srq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -08001016 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -07001017};
Christopher Ferris82d75042015-01-26 10:57:07 -08001018/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001019struct ib_uverbs_destroy_srq_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -07001020 __u32 events_reported;
Christopher Ferris05d08e92016-02-04 13:16:38 -08001021};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001022struct ib_uverbs_ex_create_wq {
1023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1024 __u32 comp_mask;
1025 __u32 wq_type;
1026 __u64 user_handle;
1027 __u32 pd_handle;
1028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1029 __u32 cq_handle;
1030 __u32 max_wr;
1031 __u32 max_sge;
1032};
1033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1034struct ib_uverbs_ex_create_wq_resp {
1035 __u32 comp_mask;
1036 __u32 response_length;
1037 __u32 wq_handle;
1038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1039 __u32 max_wr;
1040 __u32 max_sge;
1041 __u32 wqn;
1042};
1043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1044struct ib_uverbs_ex_destroy_wq {
1045 __u32 comp_mask;
1046 __u32 wq_handle;
1047};
1048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1049struct ib_uverbs_ex_destroy_wq_resp {
1050 __u32 comp_mask;
1051 __u32 response_length;
1052 __u32 events_reported;
1053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1054 __u32 reserved;
1055};
1056struct ib_uverbs_ex_modify_wq {
1057 __u32 attr_mask;
1058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1059 __u32 wq_handle;
1060 __u32 wq_state;
1061 __u32 curr_wq_state;
1062};
1063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1064#define IB_USER_VERBS_MAX_LOG_IND_TBL_SIZE 0x0d
1065struct ib_uverbs_ex_create_rwq_ind_table {
1066 __u32 comp_mask;
1067 __u32 log_ind_tbl_size;
1068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1069 __u32 wq_handles[0];
1070};
1071struct ib_uverbs_ex_create_rwq_ind_table_resp {
1072 __u32 comp_mask;
1073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1074 __u32 response_length;
1075 __u32 ind_tbl_handle;
1076 __u32 ind_tbl_num;
1077};
1078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1079struct ib_uverbs_ex_destroy_rwq_ind_table {
1080 __u32 comp_mask;
1081 __u32 ind_tbl_handle;
1082};
1083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -07001084#endif