aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_user_cm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rdma/ib_user_cm.h')
-rw-r--r--include/rdma/ib_user_cm.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/include/rdma/ib_user_cm.h b/include/rdma/ib_user_cm.h
index e4d1654276ad..19be116047f6 100644
--- a/include/rdma/ib_user_cm.h
+++ b/include/rdma/ib_user_cm.h
@@ -38,7 +38,7 @@
38 38
39#include <linux/types.h> 39#include <linux/types.h>
40 40
41#define IB_USER_CM_ABI_VERSION 2 41#define IB_USER_CM_ABI_VERSION 4
42 42
43enum { 43enum {
44 IB_USER_CM_CMD_CREATE_ID, 44 IB_USER_CM_CMD_CREATE_ID,
@@ -84,6 +84,7 @@ struct ib_ucm_create_id_resp {
84struct ib_ucm_destroy_id { 84struct ib_ucm_destroy_id {
85 __u64 response; 85 __u64 response;
86 __u32 id; 86 __u32 id;
87 __u32 reserved;
87}; 88};
88 89
89struct ib_ucm_destroy_id_resp { 90struct ib_ucm_destroy_id_resp {
@@ -93,6 +94,7 @@ struct ib_ucm_destroy_id_resp {
93struct ib_ucm_attr_id { 94struct ib_ucm_attr_id {
94 __u64 response; 95 __u64 response;
95 __u32 id; 96 __u32 id;
97 __u32 reserved;
96}; 98};
97 99
98struct ib_ucm_attr_id_resp { 100struct ib_ucm_attr_id_resp {
@@ -164,6 +166,7 @@ struct ib_ucm_listen {
164 __be64 service_id; 166 __be64 service_id;
165 __be64 service_mask; 167 __be64 service_mask;
166 __u32 id; 168 __u32 id;
169 __u32 reserved;
167}; 170};
168 171
169struct ib_ucm_establish { 172struct ib_ucm_establish {
@@ -219,7 +222,7 @@ struct ib_ucm_req {
219 __u8 rnr_retry_count; 222 __u8 rnr_retry_count;
220 __u8 max_cm_retries; 223 __u8 max_cm_retries;
221 __u8 srq; 224 __u8 srq;
222 __u8 reserved[1]; 225 __u8 reserved[5];
223}; 226};
224 227
225struct ib_ucm_rep { 228struct ib_ucm_rep {
@@ -236,6 +239,7 @@ struct ib_ucm_rep {
236 __u8 flow_control; 239 __u8 flow_control;
237 __u8 rnr_retry_count; 240 __u8 rnr_retry_count;
238 __u8 srq; 241 __u8 srq;
242 __u8 reserved[4];
239}; 243};
240 244
241struct ib_ucm_info { 245struct ib_ucm_info {
@@ -245,7 +249,7 @@ struct ib_ucm_info {
245 __u64 data; 249 __u64 data;
246 __u8 info_len; 250 __u8 info_len;
247 __u8 data_len; 251 __u8 data_len;
248 __u8 reserved[2]; 252 __u8 reserved[6];
249}; 253};
250 254
251struct ib_ucm_mra { 255struct ib_ucm_mra {
@@ -273,6 +277,7 @@ struct ib_ucm_sidr_req {
273 __u16 pkey; 277 __u16 pkey;
274 __u8 len; 278 __u8 len;
275 __u8 max_cm_retries; 279 __u8 max_cm_retries;
280 __u8 reserved[4];
276}; 281};
277 282
278struct ib_ucm_sidr_rep { 283struct ib_ucm_sidr_rep {
@@ -284,7 +289,7 @@ struct ib_ucm_sidr_rep {
284 __u64 data; 289 __u64 data;
285 __u8 info_len; 290 __u8 info_len;
286 __u8 data_len; 291 __u8 data_len;
287 __u8 reserved[2]; 292 __u8 reserved[6];
288}; 293};
289/* 294/*
290 * event notification ABI structures. 295 * event notification ABI structures.
@@ -295,12 +300,10 @@ struct ib_ucm_event_get {
295 __u64 info; 300 __u64 info;
296 __u8 data_len; 301 __u8 data_len;
297 __u8 info_len; 302 __u8 info_len;
298 __u8 reserved[2]; 303 __u8 reserved[6];
299}; 304};
300 305
301struct ib_ucm_req_event_resp { 306struct ib_ucm_req_event_resp {
302 /* device */
303 /* port */
304 struct ib_ucm_path_rec primary_path; 307 struct ib_ucm_path_rec primary_path;
305 struct ib_ucm_path_rec alternate_path; 308 struct ib_ucm_path_rec alternate_path;
306 __be64 remote_ca_guid; 309 __be64 remote_ca_guid;
@@ -316,6 +319,8 @@ struct ib_ucm_req_event_resp {
316 __u8 retry_count; 319 __u8 retry_count;
317 __u8 rnr_retry_count; 320 __u8 rnr_retry_count;
318 __u8 srq; 321 __u8 srq;
322 __u8 port;
323 __u8 reserved[7];
319}; 324};
320 325
321struct ib_ucm_rep_event_resp { 326struct ib_ucm_rep_event_resp {
@@ -330,7 +335,7 @@ struct ib_ucm_rep_event_resp {
330 __u8 flow_control; 335 __u8 flow_control;
331 __u8 rnr_retry_count; 336 __u8 rnr_retry_count;
332 __u8 srq; 337 __u8 srq;
333 __u8 reserved[1]; 338 __u8 reserved[5];
334}; 339};
335 340
336struct ib_ucm_rej_event_resp { 341struct ib_ucm_rej_event_resp {
@@ -353,10 +358,9 @@ struct ib_ucm_apr_event_resp {
353}; 358};
354 359
355struct ib_ucm_sidr_req_event_resp { 360struct ib_ucm_sidr_req_event_resp {
356 /* device */
357 /* port */
358 __u16 pkey; 361 __u16 pkey;
359 __u8 reserved[2]; 362 __u8 port;
363 __u8 reserved;
360}; 364};
361 365
362struct ib_ucm_sidr_rep_event_resp { 366struct ib_ucm_sidr_rep_event_resp {
@@ -376,6 +380,7 @@ struct ib_ucm_event_resp {
376 __u32 id; 380 __u32 id;
377 __u32 event; 381 __u32 event;
378 __u32 present; 382 __u32 present;
383 __u32 reserved;
379 union { 384 union {
380 struct ib_ucm_req_event_resp req_resp; 385 struct ib_ucm_req_event_resp req_resp;
381 struct ib_ucm_rep_event_resp rep_resp; 386 struct ib_ucm_rep_event_resp rep_resp;