blob: a8dccd5e0adf30e2ad9785af936ae6963a04807a [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};
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800207struct ib_uverbs_rss_caps {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800209 __u32 supported_qpts;
210 __u32 max_rwq_indirection_tables;
211 __u32 max_rwq_indirection_table_size;
212 __u32 reserved;
213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214};
215struct ib_uverbs_ex_query_device_resp {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800216 struct ib_uverbs_query_device_resp base;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800217 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800219 __u32 response_length;
220 struct ib_uverbs_odp_caps odp_caps;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800221 __u64 timestamp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800222 __u64 hca_core_clock;
Christopher Ferris38062f92014-07-09 15:33:25 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800224 __u64 device_cap_flags_ex;
225 struct ib_uverbs_rss_caps rss_caps;
226 __u32 max_wq_type_rq;
227 __u32 reserved;
228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800230struct ib_uverbs_query_port {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700231 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800232 __u8 port_num;
Christopher Ferris38062f92014-07-09 15:33:25 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800234 __u8 reserved[7];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800235 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700236};
Ben Cheng655a7c02013-10-16 16:09:24 -0700237struct ib_uverbs_query_port_resp {
Christopher Ferris38062f92014-07-09 15:33:25 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800239 __u32 port_cap_flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800240 __u32 max_msg_sz;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700241 __u32 bad_pkey_cntr;
Tao Baod7db5942015-01-28 10:07:51 -0800242 __u32 qkey_viol_cntr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800244 __u32 gid_tbl_len;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800245 __u16 pkey_tbl_len;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700246 __u16 lid;
Tao Baod7db5942015-01-28 10:07:51 -0800247 __u16 sm_lid;
Christopher Ferris38062f92014-07-09 15:33:25 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800249 __u8 state;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800250 __u8 max_mtu;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700251 __u8 active_mtu;
Tao Baod7db5942015-01-28 10:07:51 -0800252 __u8 lmc;
Christopher Ferris38062f92014-07-09 15:33:25 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800254 __u8 max_vl_num;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800255 __u8 sm_sl;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700256 __u8 subnet_timeout;
Tao Baod7db5942015-01-28 10:07:51 -0800257 __u8 init_type_reply;
Christopher Ferris38062f92014-07-09 15:33:25 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800259 __u8 active_width;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800260 __u8 active_speed;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700261 __u8 phys_state;
Tao Baod7db5942015-01-28 10:07:51 -0800262 __u8 link_layer;
Christopher Ferris38062f92014-07-09 15:33:25 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800264 __u8 reserved[2];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800265};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700266struct ib_uverbs_alloc_pd {
Tao Baod7db5942015-01-28 10:07:51 -0800267 __u64 response;
Christopher Ferris38062f92014-07-09 15:33:25 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800269 __u64 driver_data[0];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800270};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700271struct ib_uverbs_alloc_pd_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800272 __u32 pd_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800274};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800275struct ib_uverbs_dealloc_pd {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700276 __u32 pd_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 Ferris6a9755d2017-01-13 14:09:31 -0800279struct ib_uverbs_open_xrcd {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800280 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700281 __u32 fd;
Tao Baod7db5942015-01-28 10:07:51 -0800282 __u32 oflags;
Christopher Ferris38062f92014-07-09 15:33:25 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800284 __u64 driver_data[0];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800285};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700286struct ib_uverbs_open_xrcd_resp {
Tao Baod7db5942015-01-28 10:07:51 -0800287 __u32 xrcd_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800289};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800290struct ib_uverbs_close_xrcd {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700291 __u32 xrcd_handle;
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 Ferris6a9755d2017-01-13 14:09:31 -0800294struct ib_uverbs_reg_mr {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800295 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700296 __u64 start;
Tao Baod7db5942015-01-28 10:07:51 -0800297 __u64 length;
Christopher Ferris38062f92014-07-09 15:33:25 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800299 __u64 hca_va;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800300 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700301 __u32 access_flags;
Tao Baod7db5942015-01-28 10:07:51 -0800302 __u64 driver_data[0];
Christopher Ferris38062f92014-07-09 15:33:25 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800304};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800305struct ib_uverbs_reg_mr_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700306 __u32 mr_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800307 __u32 lkey;
Christopher Ferris38062f92014-07-09 15:33:25 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800309 __u32 rkey;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800310};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700311struct ib_uverbs_rereg_mr {
Tao Baod7db5942015-01-28 10:07:51 -0800312 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800314 __u32 mr_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800315 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700316 __u64 start;
Tao Baod7db5942015-01-28 10:07:51 -0800317 __u64 length;
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800319 __u64 hca_va;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800320 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700321 __u32 access_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800322};
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800324struct ib_uverbs_rereg_mr_resp {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800325 __u32 lkey;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700326 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800327};
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800329struct ib_uverbs_dereg_mr {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800330 __u32 mr_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700331};
Ben Cheng655a7c02013-10-16 16:09:24 -0700332struct ib_uverbs_alloc_mw {
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800334 __u64 response;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800335 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700336 __u8 mw_type;
Tao Baod7db5942015-01-28 10:07:51 -0800337 __u8 reserved[3];
Christopher Ferris82d75042015-01-26 10:57:07 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800339};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800340struct ib_uverbs_alloc_mw_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700341 __u32 mw_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800342 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800344};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800345struct ib_uverbs_dealloc_mw {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700346 __u32 mw_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700347};
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800349struct ib_uverbs_create_comp_channel {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800350 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700351};
Ben Cheng655a7c02013-10-16 16:09:24 -0700352struct ib_uverbs_create_comp_channel_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800354 __u32 fd;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800355};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700356struct ib_uverbs_create_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800357 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800359 __u64 user_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800360 __u32 cqe;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700361 __u32 comp_vector;
Tao Baod7db5942015-01-28 10:07:51 -0800362 __s32 comp_channel;
Christopher Ferris82d75042015-01-26 10:57:07 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800364 __u32 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800365 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700366};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800367struct ib_uverbs_ex_create_cq {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800369 __u64 user_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800370 __u32 cqe;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700371 __u32 comp_vector;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800372 __s32 comp_channel;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800374 __u32 comp_mask;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800375 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700376 __u32 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800377};
Christopher Ferris82d75042015-01-26 10:57:07 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800379struct ib_uverbs_create_cq_resp {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800380 __u32 cq_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700381 __u32 cqe;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800382};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800384struct ib_uverbs_ex_create_cq_resp {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800385 struct ib_uverbs_create_cq_resp base;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700386 __u32 comp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800387 __u32 response_length;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800389};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800390struct ib_uverbs_resize_cq {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700391 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800392 __u32 cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800394 __u32 cqe;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800395 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700396};
Ben Cheng655a7c02013-10-16 16:09:24 -0700397struct ib_uverbs_resize_cq_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800399 __u32 cqe;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800400 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700401 __u64 driver_data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700402};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800404struct ib_uverbs_poll_cq {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800405 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700406 __u32 cq_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800407 __u32 ne;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800409};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800410struct ib_uverbs_wc {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700411 __u64 wr_id;
Tao Baod7db5942015-01-28 10:07:51 -0800412 __u32 status;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800414 __u32 opcode;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800415 __u32 vendor_err;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700416 __u32 byte_len;
Tao Baod7db5942015-01-28 10:07:51 -0800417 union {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800419 __u32 imm_data;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800420 __u32 invalidate_rkey;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700421 } ex;
Tao Baod7db5942015-01-28 10:07:51 -0800422 __u32 qp_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800424 __u32 src_qp;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800425 __u32 wc_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700426 __u16 pkey_index;
Tao Baod7db5942015-01-28 10:07:51 -0800427 __u16 slid;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800429 __u8 sl;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800430 __u8 dlid_path_bits;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700431 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800432 __u8 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800434};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800435struct ib_uverbs_poll_cq_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700436 __u32 count;
Tao Baod7db5942015-01-28 10:07:51 -0800437 __u32 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800439 struct ib_uverbs_wc wc[0];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800440};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700441struct ib_uverbs_req_notify_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800442 __u32 cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800444 __u32 solicited_only;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800445};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700446struct ib_uverbs_destroy_cq {
Tao Baod7db5942015-01-28 10:07:51 -0800447 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800449 __u32 cq_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800450 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700451};
Ben Cheng655a7c02013-10-16 16:09:24 -0700452struct ib_uverbs_destroy_cq_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800454 __u32 comp_events_reported;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800455 __u32 async_events_reported;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700456};
Ben Cheng655a7c02013-10-16 16:09:24 -0700457struct ib_uverbs_global_route {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800459 __u8 dgid[16];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800460 __u32 flow_label;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700461 __u8 sgid_index;
Tao Baod7db5942015-01-28 10:07:51 -0800462 __u8 hop_limit;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800464 __u8 traffic_class;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800465 __u8 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700466};
Ben Cheng655a7c02013-10-16 16:09:24 -0700467struct ib_uverbs_ah_attr {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800469 struct ib_uverbs_global_route grh;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800470 __u16 dlid;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700471 __u8 sl;
Tao Baod7db5942015-01-28 10:07:51 -0800472 __u8 src_path_bits;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800474 __u8 static_rate;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800475 __u8 is_global;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700476 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800477 __u8 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800479};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800480struct ib_uverbs_qp_attr {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700481 __u32 qp_attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -0800482 __u32 qp_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800484 __u32 cur_qp_state;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800485 __u32 path_mtu;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700486 __u32 path_mig_state;
Tao Baod7db5942015-01-28 10:07:51 -0800487 __u32 qkey;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800489 __u32 rq_psn;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800490 __u32 sq_psn;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700491 __u32 dest_qp_num;
Tao Baod7db5942015-01-28 10:07:51 -0800492 __u32 qp_access_flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800494 struct ib_uverbs_ah_attr ah_attr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800495 struct ib_uverbs_ah_attr alt_ah_attr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700496 __u32 max_send_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800497 __u32 max_recv_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800499 __u32 max_send_sge;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800500 __u32 max_recv_sge;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700501 __u32 max_inline_data;
Tao Baod7db5942015-01-28 10:07:51 -0800502 __u16 pkey_index;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800504 __u16 alt_pkey_index;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800505 __u8 en_sqd_async_notify;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700506 __u8 sq_draining;
Tao Baod7db5942015-01-28 10:07:51 -0800507 __u8 max_rd_atomic;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800509 __u8 max_dest_rd_atomic;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800510 __u8 min_rnr_timer;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700511 __u8 port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800512 __u8 timeout;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800514 __u8 retry_cnt;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800515 __u8 rnr_retry;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700516 __u8 alt_port_num;
Tao Baod7db5942015-01-28 10:07:51 -0800517 __u8 alt_timeout;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800519 __u8 reserved[5];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800520};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700521struct ib_uverbs_create_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800522 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800524 __u64 user_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800525 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700526 __u32 send_cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800527 __u32 recv_cq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800529 __u32 srq_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800530 __u32 max_send_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700531 __u32 max_recv_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800532 __u32 max_send_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800534 __u32 max_recv_sge;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800535 __u32 max_inline_data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700536 __u8 sq_sig_all;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800537 __u8 qp_type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800539 __u8 is_srq;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800540 __u8 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700541 __u64 driver_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800542};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800544enum ib_uverbs_create_qp_mask {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800545 IB_UVERBS_CREATE_QP_MASK_IND_TABLE = 1UL << 0,
546};
547enum {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800549 IB_UVERBS_CREATE_QP_SUP_COMP_MASK = IB_UVERBS_CREATE_QP_MASK_IND_TABLE,
Christopher Ferris49f525c2016-12-12 14:55:36 -0800550};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800551struct ib_uverbs_ex_create_qp {
552 __u64 user_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800554 __u32 pd_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800555 __u32 send_cq_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800556 __u32 recv_cq_handle;
557 __u32 srq_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800559 __u32 max_send_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800560 __u32 max_recv_wr;
561 __u32 max_send_sge;
562 __u32 max_recv_sge;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800564 __u32 max_inline_data;
Tao Baod7db5942015-01-28 10:07:51 -0800565 __u8 sq_sig_all;
566 __u8 qp_type;
567 __u8 is_srq;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800569 __u8 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800570 __u32 comp_mask;
571 __u32 create_flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800572 __u32 rwq_ind_tbl_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800574 __u32 reserved1;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800575};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700576struct ib_uverbs_open_qp {
Tao Baod7db5942015-01-28 10:07:51 -0800577 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800579 __u64 user_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800580 __u32 pd_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700581 __u32 qpn;
Tao Baod7db5942015-01-28 10:07:51 -0800582 __u8 qp_type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800584 __u8 reserved[7];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800585 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700586};
Ben Cheng655a7c02013-10-16 16:09:24 -0700587struct ib_uverbs_create_qp_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800589 __u32 qp_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800590 __u32 qpn;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700591 __u32 max_send_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800592 __u32 max_recv_wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800594 __u32 max_send_sge;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800595 __u32 max_recv_sge;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700596 __u32 max_inline_data;
Tao Baod7db5942015-01-28 10:07:51 -0800597 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800599};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800600struct ib_uverbs_ex_create_qp_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700601 struct ib_uverbs_create_qp_resp base;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800602 __u32 comp_mask;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800604 __u32 response_length;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800605};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700606struct ib_uverbs_qp_dest {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800607 __u8 dgid[16];
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800609 __u32 flow_label;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800610 __u16 dlid;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700611 __u16 reserved;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800612 __u8 sgid_index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800614 __u8 hop_limit;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800615 __u8 traffic_class;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700616 __u8 sl;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800617 __u8 src_path_bits;
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800619 __u8 static_rate;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800620 __u8 is_global;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700621 __u8 port_num;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800622};
Christopher Ferris82d75042015-01-26 10:57:07 -0800623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800624struct ib_uverbs_query_qp {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800625 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700626 __u32 qp_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800627 __u32 attr_mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800629 __u64 driver_data[0];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800630};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700631struct ib_uverbs_query_qp_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800632 struct ib_uverbs_qp_dest dest;
Christopher Ferris82d75042015-01-26 10:57:07 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800634 struct ib_uverbs_qp_dest alt_dest;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800635 __u32 max_send_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700636 __u32 max_recv_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800637 __u32 max_send_sge;
Christopher Ferris82d75042015-01-26 10:57:07 -0800638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800639 __u32 max_recv_sge;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800640 __u32 max_inline_data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700641 __u32 qkey;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800642 __u32 rq_psn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800644 __u32 sq_psn;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800645 __u32 dest_qp_num;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700646 __u32 qp_access_flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800647 __u16 pkey_index;
Christopher Ferris82d75042015-01-26 10:57:07 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800649 __u16 alt_pkey_index;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800650 __u8 qp_state;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700651 __u8 cur_qp_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800652 __u8 path_mtu;
Christopher Ferris82d75042015-01-26 10:57:07 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800654 __u8 path_mig_state;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800655 __u8 sq_draining;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700656 __u8 max_rd_atomic;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800657 __u8 max_dest_rd_atomic;
Christopher Ferris82d75042015-01-26 10:57:07 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800659 __u8 min_rnr_timer;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800660 __u8 port_num;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700661 __u8 timeout;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800662 __u8 retry_cnt;
Christopher Ferris82d75042015-01-26 10:57:07 -0800663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800664 __u8 rnr_retry;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800665 __u8 alt_port_num;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700666 __u8 alt_timeout;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800667 __u8 sq_sig_all;
Christopher Ferris82d75042015-01-26 10:57:07 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800669 __u8 reserved[5];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800670 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700671};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800672struct ib_uverbs_modify_qp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800674 struct ib_uverbs_qp_dest dest;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800675 struct ib_uverbs_qp_dest alt_dest;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700676 __u32 qp_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800677 __u32 attr_mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800679 __u32 qkey;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800680 __u32 rq_psn;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700681 __u32 sq_psn;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800682 __u32 dest_qp_num;
Christopher Ferris82d75042015-01-26 10:57:07 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800684 __u32 qp_access_flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800685 __u16 pkey_index;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700686 __u16 alt_pkey_index;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800687 __u8 qp_state;
Christopher Ferris82d75042015-01-26 10:57:07 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800689 __u8 cur_qp_state;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800690 __u8 path_mtu;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700691 __u8 path_mig_state;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800692 __u8 en_sqd_async_notify;
Christopher Ferris82d75042015-01-26 10:57:07 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800694 __u8 max_rd_atomic;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800695 __u8 max_dest_rd_atomic;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700696 __u8 min_rnr_timer;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800697 __u8 port_num;
Christopher Ferris82d75042015-01-26 10:57:07 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800699 __u8 timeout;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800700 __u8 retry_cnt;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700701 __u8 rnr_retry;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800702 __u8 alt_port_num;
Christopher Ferris82d75042015-01-26 10:57:07 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800704 __u8 alt_timeout;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800705 __u8 reserved[2];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700706 __u64 driver_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800707};
Christopher Ferris82d75042015-01-26 10:57:07 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800709struct ib_uverbs_modify_qp_resp {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800710};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700711struct ib_uverbs_destroy_qp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800712 __u64 response;
Christopher Ferris82d75042015-01-26 10:57:07 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800714 __u32 qp_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800715 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700716};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800717struct ib_uverbs_destroy_qp_resp {
Christopher Ferris82d75042015-01-26 10:57:07 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800719 __u32 events_reported;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800720};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700721struct ib_uverbs_sge {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800722 __u64 addr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800724 __u32 length;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800725 __u32 lkey;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700726};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800727struct ib_uverbs_send_wr {
Christopher Ferris82d75042015-01-26 10:57:07 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800729 __u64 wr_id;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800730 __u32 num_sge;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700731 __u32 opcode;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800732 __u32 send_flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800734 union {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800735 __u32 imm_data;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700736 __u32 invalidate_rkey;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800737 } ex;
Christopher Ferris82d75042015-01-26 10:57:07 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800739 union {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800740 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700741 __u64 remote_addr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800742 __u32 rkey;
Christopher Ferris82d75042015-01-26 10:57:07 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800744 __u32 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800745 } rdma;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700746 struct {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800747 __u64 remote_addr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800749 __u64 compare_add;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800750 __u64 swap;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700751 __u32 rkey;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800752 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800754 } atomic;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800755 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700756 __u32 ah;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800757 __u32 remote_qpn;
Christopher Ferris82d75042015-01-26 10:57:07 -0800758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800759 __u32 remote_qkey;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800760 __u32 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700761 } ud;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800762 } wr;
Christopher Ferris82d75042015-01-26 10:57:07 -0800763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800764};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800765struct ib_uverbs_post_send {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700766 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800767 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800769 __u32 wr_count;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800770 __u32 sge_count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700771 __u32 wqe_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800772 struct ib_uverbs_send_wr send_wr[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800774};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800775struct ib_uverbs_post_send_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700776 __u32 bad_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800777};
Christopher Ferris82d75042015-01-26 10:57:07 -0800778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800779struct ib_uverbs_recv_wr {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800780 __u64 wr_id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700781 __u32 num_sge;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800782 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800784};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800785struct ib_uverbs_post_recv {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700786 __u64 response;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800787 __u32 qp_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800789 __u32 wr_count;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800790 __u32 sge_count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700791 __u32 wqe_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800792 struct ib_uverbs_recv_wr recv_wr[0];
Christopher Ferris82d75042015-01-26 10:57:07 -0800793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800794};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800795struct ib_uverbs_post_recv_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700796 __u32 bad_wr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800797};
Christopher Ferris82d75042015-01-26 10:57:07 -0800798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800799struct ib_uverbs_post_srq_recv {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800800 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700801 __u32 srq_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800802 __u32 wr_count;
Christopher Ferris82d75042015-01-26 10:57:07 -0800803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800804 __u32 sge_count;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800805 __u32 wqe_size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700806 struct ib_uverbs_recv_wr recv[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800807};
Christopher Ferris82d75042015-01-26 10:57:07 -0800808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800809struct ib_uverbs_post_srq_recv_resp {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800810 __u32 bad_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700811};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800812struct ib_uverbs_create_ah {
Christopher Ferris82d75042015-01-26 10:57:07 -0800813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800814 __u64 response;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800815 __u64 user_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700816 __u32 pd_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800817 __u32 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800819 struct ib_uverbs_ah_attr attr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800820};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700821struct ib_uverbs_create_ah_resp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800822 __u32 ah_handle;
Christopher Ferris82d75042015-01-26 10:57:07 -0800823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800824};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800825struct ib_uverbs_destroy_ah {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700826 __u32 ah_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800827};
Christopher Ferris82d75042015-01-26 10:57:07 -0800828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800829struct ib_uverbs_attach_mcast {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800830 __u8 gid[16];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700831 __u32 qp_handle;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800832 __u16 mlid;
Christopher Ferris82d75042015-01-26 10:57:07 -0800833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800834 __u16 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800835 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700836};
Christopher Ferris05d08e92016-02-04 13:16:38 -0800837struct ib_uverbs_detach_mcast {
Christopher Ferris82d75042015-01-26 10:57:07 -0800838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800839 __u8 gid[16];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800840 __u32 qp_handle;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700841 __u16 mlid;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800842 __u16 reserved;
Christopher Ferris82d75042015-01-26 10:57:07 -0800843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800844 __u64 driver_data[0];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800845};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700846struct ib_uverbs_flow_spec_hdr {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800847 __u32 type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800849 __u16 size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800850 __u16 reserved;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700851 __u64 flow_spec_data[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800852};
Christopher Ferris82d75042015-01-26 10:57:07 -0800853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800854struct ib_uverbs_flow_eth_filter {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800855 __u8 dst_mac[6];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700856 __u8 src_mac[6];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800857 __be16 ether_type;
Christopher Ferris82d75042015-01-26 10:57:07 -0800858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800859 __be16 vlan_tag;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800860};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700861struct ib_uverbs_flow_spec_eth {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800862 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800864 struct ib_uverbs_flow_spec_hdr hdr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800865 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700866 __u32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800867 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800869 __u16 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800870 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700871 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800872 struct ib_uverbs_flow_eth_filter val;
Christopher Ferris82d75042015-01-26 10:57:07 -0800873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800874 struct ib_uverbs_flow_eth_filter mask;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800875};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700876struct ib_uverbs_flow_ipv4_filter {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800877 __be32 src_ip;
Christopher Ferris82d75042015-01-26 10:57:07 -0800878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800879 __be32 dst_ip;
880 __u8 proto;
881 __u8 tos;
882 __u8 ttl;
883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
884 __u8 flags;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800885};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700886struct ib_uverbs_flow_spec_ipv4 {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800887 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800889 struct ib_uverbs_flow_spec_hdr hdr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800890 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700891 __u32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800892 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800894 __u16 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800895 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700896 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800897 struct ib_uverbs_flow_ipv4_filter val;
Christopher Ferris82d75042015-01-26 10:57:07 -0800898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800899 struct ib_uverbs_flow_ipv4_filter mask;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800900};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700901struct ib_uverbs_flow_tcp_udp_filter {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800902 __be16 dst_port;
Christopher Ferris82d75042015-01-26 10:57:07 -0800903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800904 __be16 src_port;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800905};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700906struct ib_uverbs_flow_spec_tcp_udp {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800907 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800909 struct ib_uverbs_flow_spec_hdr hdr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800910 struct {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700911 __u32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800912 __u16 size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800914 __u16 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800915 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700916 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800917 struct ib_uverbs_flow_tcp_udp_filter val;
Christopher Ferris82d75042015-01-26 10:57:07 -0800918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800919 struct ib_uverbs_flow_tcp_udp_filter mask;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800920};
921struct ib_uverbs_flow_ipv6_filter {
922 __u8 src_ip[16];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800924 __u8 dst_ip[16];
925 __be32 flow_label;
926 __u8 next_hdr;
927 __u8 traffic_class;
928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
929 __u8 hop_limit;
930 __u8 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800931};
932struct ib_uverbs_flow_spec_ipv6 {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800934 union {
935 struct ib_uverbs_flow_spec_hdr hdr;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800936 struct {
937 __u32 type;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800939 __u16 size;
940 __u16 reserved;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800941 };
942 };
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -0800944 struct ib_uverbs_flow_ipv6_filter val;
945 struct ib_uverbs_flow_ipv6_filter mask;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800946};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700947struct ib_uverbs_flow_attr {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800949 __u32 type;
Tao Baod7db5942015-01-28 10:07:51 -0800950 __u16 size;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800951 __u16 priority;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700952 __u8 num_of_specs;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800954 __u8 reserved[2];
Tao Baod7db5942015-01-28 10:07:51 -0800955 __u8 port;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800956 __u32 flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700957 struct ib_uverbs_flow_spec_hdr flow_specs[0];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800959};
Christopher Ferris38062f92014-07-09 15:33:25 -0700960struct ib_uverbs_create_flow {
Christopher Ferris49f525c2016-12-12 14:55:36 -0800961 __u32 comp_mask;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700962 __u32 qp_handle;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800964 struct ib_uverbs_flow_attr flow_attr;
Christopher Ferris38062f92014-07-09 15:33:25 -0700965};
966struct ib_uverbs_create_flow_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700967 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800969 __u32 flow_handle;
Christopher Ferris38062f92014-07-09 15:33:25 -0700970};
971struct ib_uverbs_destroy_flow {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700972 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800974 __u32 flow_handle;
Ben Cheng655a7c02013-10-16 16:09:24 -0700975};
Christopher Ferris49f525c2016-12-12 14:55:36 -0800976struct ib_uverbs_create_srq {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700977 __u64 response;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800979 __u64 user_handle;
Tao Baod7db5942015-01-28 10:07:51 -0800980 __u32 pd_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800981 __u32 max_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700982 __u32 max_sge;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800984 __u32 srq_limit;
Tao Baod7db5942015-01-28 10:07:51 -0800985 __u64 driver_data[0];
Christopher Ferris49f525c2016-12-12 14:55:36 -0800986};
Christopher Ferris106b3a82016-08-24 12:15:38 -0700987struct ib_uverbs_create_xsrq {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800988/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800989 __u64 response;
Tao Baod7db5942015-01-28 10:07:51 -0800990 __u64 user_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800991 __u32 srq_type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700992 __u32 pd_handle;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800993/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800994 __u32 max_wr;
Tao Baod7db5942015-01-28 10:07:51 -0800995 __u32 max_sge;
Christopher Ferris49f525c2016-12-12 14:55:36 -0800996 __u32 srq_limit;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700997 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800998/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800999 __u32 xrcd_handle;
Tao Baod7db5942015-01-28 10:07:51 -08001000 __u32 cq_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001001 __u64 driver_data[0];
Christopher Ferris106b3a82016-08-24 12:15:38 -07001002};
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001003/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001004struct ib_uverbs_create_srq_resp {
Tao Baod7db5942015-01-28 10:07:51 -08001005 __u32 srq_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001006 __u32 max_wr;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001007 __u32 max_sge;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001008/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001009 __u32 srqn;
Ben Cheng655a7c02013-10-16 16:09:24 -07001010};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001011struct ib_uverbs_modify_srq {
Christopher Ferris106b3a82016-08-24 12:15:38 -07001012 __u32 srq_handle;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001013/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001014 __u32 attr_mask;
Tao Baod7db5942015-01-28 10:07:51 -08001015 __u32 max_wr;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001016 __u32 srq_limit;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001017 __u64 driver_data[0];
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001018/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001019};
Ben Cheng655a7c02013-10-16 16:09:24 -07001020struct ib_uverbs_query_srq {
Christopher Ferris49f525c2016-12-12 14:55:36 -08001021 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001022 __u32 srq_handle;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001024 __u32 reserved;
Tao Baod7db5942015-01-28 10:07:51 -08001025 __u64 driver_data[0];
Christopher Ferris49f525c2016-12-12 14:55:36 -08001026};
Christopher Ferris106b3a82016-08-24 12:15:38 -07001027struct ib_uverbs_query_srq_resp {
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001029 __u32 max_wr;
Tao Baod7db5942015-01-28 10:07:51 -08001030 __u32 max_sge;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001031 __u32 srq_limit;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001032 __u32 reserved;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001034};
Ben Cheng655a7c02013-10-16 16:09:24 -07001035struct ib_uverbs_destroy_srq {
Christopher Ferris49f525c2016-12-12 14:55:36 -08001036 __u64 response;
Christopher Ferris106b3a82016-08-24 12:15:38 -07001037 __u32 srq_handle;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001039 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -07001040};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001041struct ib_uverbs_destroy_srq_resp {
Christopher Ferris106b3a82016-08-24 12:15:38 -07001042 __u32 events_reported;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -08001044};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001045struct ib_uverbs_ex_create_wq {
Christopher Ferris49f525c2016-12-12 14:55:36 -08001046 __u32 comp_mask;
1047 __u32 wq_type;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001049 __u64 user_handle;
1050 __u32 pd_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001051 __u32 cq_handle;
1052 __u32 max_wr;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001054 __u32 max_sge;
1055};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001056struct ib_uverbs_ex_create_wq_resp {
1057 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001059 __u32 response_length;
1060 __u32 wq_handle;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001061 __u32 max_wr;
1062 __u32 max_sge;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001064 __u32 wqn;
1065};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001066struct ib_uverbs_ex_destroy_wq {
1067 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001069 __u32 wq_handle;
1070};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001071struct ib_uverbs_ex_destroy_wq_resp {
1072 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001074 __u32 response_length;
1075 __u32 events_reported;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001076 __u32 reserved;
1077};
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001079struct ib_uverbs_ex_modify_wq {
1080 __u32 attr_mask;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001081 __u32 wq_handle;
1082 __u32 wq_state;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001084 __u32 curr_wq_state;
1085};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001086#define IB_USER_VERBS_MAX_LOG_IND_TBL_SIZE 0x0d
1087struct ib_uverbs_ex_create_rwq_ind_table {
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001089 __u32 comp_mask;
1090 __u32 log_ind_tbl_size;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001091 __u32 wq_handles[0];
1092};
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001094struct ib_uverbs_ex_create_rwq_ind_table_resp {
1095 __u32 comp_mask;
Christopher Ferris49f525c2016-12-12 14:55:36 -08001096 __u32 response_length;
1097 __u32 ind_tbl_handle;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001099 __u32 ind_tbl_num;
1100};
Christopher Ferris49f525c2016-12-12 14:55:36 -08001101struct ib_uverbs_ex_destroy_rwq_ind_table {
1102 __u32 comp_mask;
Christopher Ferris6a9755d2017-01-13 14:09:31 -08001103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris49f525c2016-12-12 14:55:36 -08001104 __u32 ind_tbl_handle;
1105};
Ben Cheng655a7c02013-10-16 16:09:24 -07001106#endif