46
46
#define IB_USER_VERBS_ABI_VERSION 6
47
47
#define IB_USER_VERBS_CMD_THRESHOLD 50
48
48
49
- enum {
49
+ enum ib_uverbs_write_cmds {
50
50
IB_USER_VERBS_CMD_GET_CONTEXT ,
51
51
IB_USER_VERBS_CMD_QUERY_DEVICE ,
52
52
IB_USER_VERBS_CMD_QUERY_PORT ,
@@ -164,6 +164,7 @@ struct ib_uverbs_get_context {
164
164
struct ib_uverbs_get_context_resp {
165
165
__u32 async_fd ;
166
166
__u32 num_comp_vectors ;
167
+ __aligned_u64 driver_data [0 ];
167
168
};
168
169
169
170
struct ib_uverbs_query_device {
@@ -310,6 +311,7 @@ struct ib_uverbs_alloc_pd {
310
311
311
312
struct ib_uverbs_alloc_pd_resp {
312
313
__u32 pd_handle ;
314
+ __u32 driver_data [0 ];
313
315
};
314
316
315
317
struct ib_uverbs_dealloc_pd {
@@ -325,6 +327,7 @@ struct ib_uverbs_open_xrcd {
325
327
326
328
struct ib_uverbs_open_xrcd_resp {
327
329
__u32 xrcd_handle ;
330
+ __u32 driver_data [0 ];
328
331
};
329
332
330
333
struct ib_uverbs_close_xrcd {
@@ -345,6 +348,7 @@ struct ib_uverbs_reg_mr_resp {
345
348
__u32 mr_handle ;
346
349
__u32 lkey ;
347
350
__u32 rkey ;
351
+ __u32 driver_data [0 ];
348
352
};
349
353
350
354
struct ib_uverbs_rereg_mr {
@@ -356,11 +360,13 @@ struct ib_uverbs_rereg_mr {
356
360
__aligned_u64 hca_va ;
357
361
__u32 pd_handle ;
358
362
__u32 access_flags ;
363
+ __aligned_u64 driver_data [0 ];
359
364
};
360
365
361
366
struct ib_uverbs_rereg_mr_resp {
362
367
__u32 lkey ;
363
368
__u32 rkey ;
369
+ __aligned_u64 driver_data [0 ];
364
370
};
365
371
366
372
struct ib_uverbs_dereg_mr {
@@ -372,11 +378,13 @@ struct ib_uverbs_alloc_mw {
372
378
__u32 pd_handle ;
373
379
__u8 mw_type ;
374
380
__u8 reserved [3 ];
381
+ __aligned_u64 driver_data [0 ];
375
382
};
376
383
377
384
struct ib_uverbs_alloc_mw_resp {
378
385
__u32 mw_handle ;
379
386
__u32 rkey ;
387
+ __aligned_u64 driver_data [0 ];
380
388
};
381
389
382
390
struct ib_uverbs_dealloc_mw {
@@ -419,6 +427,7 @@ struct ib_uverbs_ex_create_cq {
419
427
struct ib_uverbs_create_cq_resp {
420
428
__u32 cq_handle ;
421
429
__u32 cqe ;
430
+ __aligned_u64 driver_data [0 ];
422
431
};
423
432
424
433
struct ib_uverbs_ex_create_cq_resp {
@@ -629,6 +638,7 @@ struct ib_uverbs_create_qp_resp {
629
638
__u32 max_recv_sge ;
630
639
__u32 max_inline_data ;
631
640
__u32 reserved ;
641
+ __u32 driver_data [0 ];
632
642
};
633
643
634
644
struct ib_uverbs_ex_create_qp_resp {
@@ -733,9 +743,6 @@ struct ib_uverbs_ex_modify_qp {
733
743
__u32 reserved ;
734
744
};
735
745
736
- struct ib_uverbs_modify_qp_resp {
737
- };
738
-
739
746
struct ib_uverbs_ex_modify_qp_resp {
740
747
__u32 comp_mask ;
741
748
__u32 response_length ;
@@ -863,10 +870,12 @@ struct ib_uverbs_create_ah {
863
870
__u32 pd_handle ;
864
871
__u32 reserved ;
865
872
struct ib_uverbs_ah_attr attr ;
873
+ __aligned_u64 driver_data [0 ];
866
874
};
867
875
868
876
struct ib_uverbs_create_ah_resp {
869
877
__u32 ah_handle ;
878
+ __u32 driver_data [0 ];
870
879
};
871
880
872
881
struct ib_uverbs_destroy_ah {
@@ -1175,6 +1184,7 @@ struct ib_uverbs_create_srq_resp {
1175
1184
__u32 max_wr ;
1176
1185
__u32 max_sge ;
1177
1186
__u32 srqn ;
1187
+ __u32 driver_data [0 ];
1178
1188
};
1179
1189
1180
1190
struct ib_uverbs_modify_srq {
0 commit comments