diff options
| author | Matan Barak <matanb@mellanox.com> | 2015-06-11 09:35:23 -0400 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2015-06-12 14:49:10 -0400 |
| commit | 565197dd8fb1354509fa983658b54d63a2ecc5d6 (patch) | |
| tree | 84f26cde99366176929929e2a091f9a81c895ff7 /include/uapi/rdma | |
| parent | b9926b92a4d44c94b0d99bfa802ac7b37dabc9e8 (diff) | |
IB/core: Extend ib_uverbs_create_cq
ib_uverbs_ex_create_cq follows the extension verbs
mechanism. New features (for example, CQ creation flags
field which is added in a downstream patch) could used
via user-space libraries without breaking the ABI.
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma')
| -rw-r--r-- | include/uapi/rdma/ib_user_verbs.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h index b513e662d8e4..19f0256e511e 100644 --- a/include/uapi/rdma/ib_user_verbs.h +++ b/include/uapi/rdma/ib_user_verbs.h | |||
| @@ -91,6 +91,7 @@ enum { | |||
| 91 | 91 | ||
| 92 | enum { | 92 | enum { |
| 93 | IB_USER_VERBS_EX_CMD_QUERY_DEVICE = IB_USER_VERBS_CMD_QUERY_DEVICE, | 93 | IB_USER_VERBS_EX_CMD_QUERY_DEVICE = IB_USER_VERBS_CMD_QUERY_DEVICE, |
| 94 | IB_USER_VERBS_EX_CMD_CREATE_CQ = IB_USER_VERBS_CMD_CREATE_CQ, | ||
| 94 | IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD, | 95 | IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD, |
| 95 | IB_USER_VERBS_EX_CMD_DESTROY_FLOW, | 96 | IB_USER_VERBS_EX_CMD_DESTROY_FLOW, |
| 96 | }; | 97 | }; |
| @@ -353,11 +354,27 @@ struct ib_uverbs_create_cq { | |||
| 353 | __u64 driver_data[0]; | 354 | __u64 driver_data[0]; |
| 354 | }; | 355 | }; |
| 355 | 356 | ||
| 357 | struct ib_uverbs_ex_create_cq { | ||
| 358 | __u64 user_handle; | ||
| 359 | __u32 cqe; | ||
| 360 | __u32 comp_vector; | ||
| 361 | __s32 comp_channel; | ||
| 362 | __u32 comp_mask; | ||
| 363 | __u32 flags; | ||
| 364 | __u32 reserved; | ||
| 365 | }; | ||
| 366 | |||
| 356 | struct ib_uverbs_create_cq_resp { | 367 | struct ib_uverbs_create_cq_resp { |
| 357 | __u32 cq_handle; | 368 | __u32 cq_handle; |
| 358 | __u32 cqe; | 369 | __u32 cqe; |
| 359 | }; | 370 | }; |
| 360 | 371 | ||
| 372 | struct ib_uverbs_ex_create_cq_resp { | ||
| 373 | struct ib_uverbs_create_cq_resp base; | ||
| 374 | __u32 comp_mask; | ||
| 375 | __u32 response_length; | ||
| 376 | }; | ||
| 377 | |||
| 361 | struct ib_uverbs_resize_cq { | 378 | struct ib_uverbs_resize_cq { |
| 362 | __u64 response; | 379 | __u64 response; |
| 363 | __u32 cq_handle; | 380 | __u32 cq_handle; |
