Skip to content

Commit 80e5dde

Browse files
committedJan 7, 2019
rdma: update uapi headers
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
1 parent e1ccc46 commit 80e5dde

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed
 

‎rdma/include/uapi/rdma/ib_user_verbs.h

+14-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
#define IB_USER_VERBS_ABI_VERSION 6
4747
#define IB_USER_VERBS_CMD_THRESHOLD 50
4848

49-
enum {
49+
enum ib_uverbs_write_cmds {
5050
IB_USER_VERBS_CMD_GET_CONTEXT,
5151
IB_USER_VERBS_CMD_QUERY_DEVICE,
5252
IB_USER_VERBS_CMD_QUERY_PORT,
@@ -164,6 +164,7 @@ struct ib_uverbs_get_context {
164164
struct ib_uverbs_get_context_resp {
165165
__u32 async_fd;
166166
__u32 num_comp_vectors;
167+
__aligned_u64 driver_data[0];
167168
};
168169

169170
struct ib_uverbs_query_device {
@@ -310,6 +311,7 @@ struct ib_uverbs_alloc_pd {
310311

311312
struct ib_uverbs_alloc_pd_resp {
312313
__u32 pd_handle;
314+
__u32 driver_data[0];
313315
};
314316

315317
struct ib_uverbs_dealloc_pd {
@@ -325,6 +327,7 @@ struct ib_uverbs_open_xrcd {
325327

326328
struct ib_uverbs_open_xrcd_resp {
327329
__u32 xrcd_handle;
330+
__u32 driver_data[0];
328331
};
329332

330333
struct ib_uverbs_close_xrcd {
@@ -345,6 +348,7 @@ struct ib_uverbs_reg_mr_resp {
345348
__u32 mr_handle;
346349
__u32 lkey;
347350
__u32 rkey;
351+
__u32 driver_data[0];
348352
};
349353

350354
struct ib_uverbs_rereg_mr {
@@ -356,11 +360,13 @@ struct ib_uverbs_rereg_mr {
356360
__aligned_u64 hca_va;
357361
__u32 pd_handle;
358362
__u32 access_flags;
363+
__aligned_u64 driver_data[0];
359364
};
360365

361366
struct ib_uverbs_rereg_mr_resp {
362367
__u32 lkey;
363368
__u32 rkey;
369+
__aligned_u64 driver_data[0];
364370
};
365371

366372
struct ib_uverbs_dereg_mr {
@@ -372,11 +378,13 @@ struct ib_uverbs_alloc_mw {
372378
__u32 pd_handle;
373379
__u8 mw_type;
374380
__u8 reserved[3];
381+
__aligned_u64 driver_data[0];
375382
};
376383

377384
struct ib_uverbs_alloc_mw_resp {
378385
__u32 mw_handle;
379386
__u32 rkey;
387+
__aligned_u64 driver_data[0];
380388
};
381389

382390
struct ib_uverbs_dealloc_mw {
@@ -419,6 +427,7 @@ struct ib_uverbs_ex_create_cq {
419427
struct ib_uverbs_create_cq_resp {
420428
__u32 cq_handle;
421429
__u32 cqe;
430+
__aligned_u64 driver_data[0];
422431
};
423432

424433
struct ib_uverbs_ex_create_cq_resp {
@@ -629,6 +638,7 @@ struct ib_uverbs_create_qp_resp {
629638
__u32 max_recv_sge;
630639
__u32 max_inline_data;
631640
__u32 reserved;
641+
__u32 driver_data[0];
632642
};
633643

634644
struct ib_uverbs_ex_create_qp_resp {
@@ -733,9 +743,6 @@ struct ib_uverbs_ex_modify_qp {
733743
__u32 reserved;
734744
};
735745

736-
struct ib_uverbs_modify_qp_resp {
737-
};
738-
739746
struct ib_uverbs_ex_modify_qp_resp {
740747
__u32 comp_mask;
741748
__u32 response_length;
@@ -863,10 +870,12 @@ struct ib_uverbs_create_ah {
863870
__u32 pd_handle;
864871
__u32 reserved;
865872
struct ib_uverbs_ah_attr attr;
873+
__aligned_u64 driver_data[0];
866874
};
867875

868876
struct ib_uverbs_create_ah_resp {
869877
__u32 ah_handle;
878+
__u32 driver_data[0];
870879
};
871880

872881
struct ib_uverbs_destroy_ah {
@@ -1175,6 +1184,7 @@ struct ib_uverbs_create_srq_resp {
11751184
__u32 max_wr;
11761185
__u32 max_sge;
11771186
__u32 srqn;
1187+
__u32 driver_data[0];
11781188
};
11791189

11801190
struct ib_uverbs_modify_srq {

‎rdma/include/uapi/rdma/rdma_netlink.h

+3
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ enum rdma_nldev_attr {
283283

284284
/*
285285
* Device and port capabilities
286+
*
287+
* When used for port info, first 32-bits are CapabilityMask followed by
288+
* 16-bit CapabilityMask2.
286289
*/
287290
RDMA_NLDEV_ATTR_CAP_FLAGS, /* u64 */
288291

0 commit comments

Comments
 (0)