blob: 7ab4cf02d2ec9b15d9ed3d30848204165604fca3 [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 RDMA_USER_CM_H
20#define RDMA_USER_CM_H
21#include <linux/types.h>
22#include <linux/in6.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <rdma/ib_user_verbs.h>
25#include <rdma/ib_user_sa.h>
26#define RDMA_USER_CM_ABI_VERSION 4
27#define RDMA_MAX_PRIVATE_DATA 256
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29enum {
30 RDMA_USER_CM_CMD_CREATE_ID,
31 RDMA_USER_CM_CMD_DESTROY_ID,
Elliott Hughes8cb52b02013-11-21 13:43:23 -080032 RDMA_USER_CM_CMD_BIND_ADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -080034 RDMA_USER_CM_CMD_RESOLVE_ADDR,
Ben Cheng655a7c02013-10-16 16:09:24 -070035 RDMA_USER_CM_CMD_RESOLVE_ROUTE,
36 RDMA_USER_CM_CMD_QUERY_ROUTE,
37 RDMA_USER_CM_CMD_CONNECT,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 RDMA_USER_CM_CMD_LISTEN,
40 RDMA_USER_CM_CMD_ACCEPT,
41 RDMA_USER_CM_CMD_REJECT,
42 RDMA_USER_CM_CMD_DISCONNECT,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 RDMA_USER_CM_CMD_INIT_QP_ATTR,
45 RDMA_USER_CM_CMD_GET_EVENT,
46 RDMA_USER_CM_CMD_GET_OPTION,
47 RDMA_USER_CM_CMD_SET_OPTION,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 RDMA_USER_CM_CMD_NOTIFY,
Elliott Hughes8cb52b02013-11-21 13:43:23 -080050 RDMA_USER_CM_CMD_JOIN_MCAST,
Ben Cheng655a7c02013-10-16 16:09:24 -070051 RDMA_USER_CM_CMD_LEAVE_MCAST,
Elliott Hughes8cb52b02013-11-21 13:43:23 -080052 RDMA_USER_CM_CMD_MIGRATE_ID
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55struct rdma_ucm_cmd_hdr {
56 __u32 cmd;
57 __u16 in;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 __u16 out;
60};
61struct rdma_ucm_create_id {
62 __u64 uid;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 __u64 response;
65 __u16 ps;
66 __u8 qp_type;
67 __u8 reserved[5];
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70struct rdma_ucm_create_id_resp {
71 __u32 id;
72};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74struct rdma_ucm_destroy_id {
75 __u64 response;
76 __u32 id;
77 __u32 reserved;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79};
80struct rdma_ucm_destroy_id_resp {
81 __u32 events_reported;
82};
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -080084struct rdma_ucm_bind_addr {
Ben Cheng655a7c02013-10-16 16:09:24 -070085 __u64 response;
86 struct sockaddr_in6 addr;
87 __u32 id;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89};
Elliott Hughes8cb52b02013-11-21 13:43:23 -080090struct rdma_ucm_resolve_addr {
Ben Cheng655a7c02013-10-16 16:09:24 -070091 struct sockaddr_in6 src_addr;
92 struct sockaddr_in6 dst_addr;
Elliott Hughes8cb52b02013-11-21 13:43:23 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094 __u32 id;
95 __u32 timeout_ms;
Ben Cheng655a7c02013-10-16 16:09:24 -070096};
97struct rdma_ucm_resolve_route {
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -080099 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700100 __u32 timeout_ms;
101};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800102struct rdma_ucm_query_route {
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 __u64 response;
105 __u32 id;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800106 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700107};
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109struct rdma_ucm_query_route_resp {
110 __u64 node_guid;
111 struct ib_user_path_rec ib_route[2];
112 struct sockaddr_in6 src_addr;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 struct sockaddr_in6 dst_addr;
115 __u32 num_paths;
116 __u8 port_num;
117 __u8 reserved[3];
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119};
Ben Cheng655a7c02013-10-16 16:09:24 -0700120struct rdma_ucm_conn_param {
121 __u32 qp_num;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800122 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800124 __u8 private_data[RDMA_MAX_PRIVATE_DATA];
Ben Cheng655a7c02013-10-16 16:09:24 -0700125 __u8 private_data_len;
126 __u8 srq;
127 __u8 responder_resources;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800129 __u8 initiator_depth;
Ben Cheng655a7c02013-10-16 16:09:24 -0700130 __u8 flow_control;
131 __u8 retry_count;
132 __u8 rnr_retry_count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800134 __u8 valid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700135};
136struct rdma_ucm_ud_param {
137 __u32 qp_num;
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800139 __u32 qkey;
Ben Cheng655a7c02013-10-16 16:09:24 -0700140 struct ib_uverbs_ah_attr ah_attr;
141 __u8 private_data[RDMA_MAX_PRIVATE_DATA];
142 __u8 private_data_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800144 __u8 reserved[7];
Ben Cheng655a7c02013-10-16 16:09:24 -0700145};
146struct rdma_ucm_connect {
147 struct rdma_ucm_conn_param conn_param;
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800149 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700150 __u32 reserved;
151};
152struct rdma_ucm_listen {
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800154 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700155 __u32 backlog;
156};
157struct rdma_ucm_accept {
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800159 __u64 uid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700160 struct rdma_ucm_conn_param conn_param;
161 __u32 id;
162 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800164};
Ben Cheng655a7c02013-10-16 16:09:24 -0700165struct rdma_ucm_reject {
166 __u32 id;
167 __u8 private_data_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800169 __u8 reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700170 __u8 private_data[RDMA_MAX_PRIVATE_DATA];
171};
172struct rdma_ucm_disconnect {
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800174 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700175};
176struct rdma_ucm_init_qp_attr {
177 __u64 response;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800179 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700180 __u32 qp_state;
181};
182struct rdma_ucm_notify {
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800184 __u32 id;
Ben Cheng655a7c02013-10-16 16:09:24 -0700185 __u32 event;
186};
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800187struct rdma_ucm_join_mcast {
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800189 __u64 response;
Ben Cheng655a7c02013-10-16 16:09:24 -0700190 __u64 uid;
191 struct sockaddr_in6 addr;
192 __u32 id;
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194};
Ben Cheng655a7c02013-10-16 16:09:24 -0700195struct rdma_ucm_get_event {
196 __u64 response;
197};
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800199struct rdma_ucm_event_resp {
Ben Cheng655a7c02013-10-16 16:09:24 -0700200 __u64 uid;
201 __u32 id;
202 __u32 event;
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800204 __u32 status;
Ben Cheng655a7c02013-10-16 16:09:24 -0700205 union {
206 struct rdma_ucm_conn_param conn;
207 struct rdma_ucm_ud_param ud;
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800209 } param;
Ben Cheng655a7c02013-10-16 16:09:24 -0700210};
211enum {
212 RDMA_OPTION_ID = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800214 RDMA_OPTION_IB = 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700215};
216enum {
217 RDMA_OPTION_ID_TOS = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800219 RDMA_OPTION_ID_REUSEADDR = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700220 RDMA_OPTION_ID_AFONLY = 2,
221 RDMA_OPTION_IB_PATH = 1
222};
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800224struct rdma_ucm_set_option {
Ben Cheng655a7c02013-10-16 16:09:24 -0700225 __u64 optval;
226 __u32 id;
227 __u32 level;
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800229 __u32 optname;
Ben Cheng655a7c02013-10-16 16:09:24 -0700230 __u32 optlen;
231};
232struct rdma_ucm_migrate_id {
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800234 __u64 response;
Ben Cheng655a7c02013-10-16 16:09:24 -0700235 __u32 id;
236 __u32 fd;
237};
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800239struct rdma_ucm_migrate_resp {
Ben Cheng655a7c02013-10-16 16:09:24 -0700240 __u32 events_reported;
241};
242#endif
Elliott Hughes8cb52b02013-11-21 13:43:23 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */