diff options
| author | Yishai Hadas <yishaih@mellanox.com> | 2016-05-23 08:20:49 -0400 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2016-06-23 11:02:43 -0400 |
| commit | f213c05272100f385912372fff678d0af4d7f8ad (patch) | |
| tree | 7aeb69b757cad6d6209ec3790583fac3b657226a /include/uapi/rdma | |
| parent | 5fd251c8b4c52da0d0916470a67fbb77b972125e (diff) | |
IB/uverbs: Add WQ support
User space applications which use RSS functionality need to create
a work queue object (WQ). The lifetime of such an object is:
* Create a WQ
* Modify the WQ from reset to init state.
* Use the WQ (by downstream patches).
* Destroy the WQ.
These commands are added to the uverbs API.
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@rimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma')
| -rw-r--r-- | include/uapi/rdma/ib_user_verbs.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h index b6543d73d20a..c9470e511e03 100644 --- a/include/uapi/rdma/ib_user_verbs.h +++ b/include/uapi/rdma/ib_user_verbs.h | |||
| @@ -95,6 +95,9 @@ enum { | |||
| 95 | IB_USER_VERBS_EX_CMD_CREATE_QP = IB_USER_VERBS_CMD_CREATE_QP, | 95 | IB_USER_VERBS_EX_CMD_CREATE_QP = IB_USER_VERBS_CMD_CREATE_QP, |
| 96 | IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD, | 96 | IB_USER_VERBS_EX_CMD_CREATE_FLOW = IB_USER_VERBS_CMD_THRESHOLD, |
| 97 | IB_USER_VERBS_EX_CMD_DESTROY_FLOW, | 97 | IB_USER_VERBS_EX_CMD_DESTROY_FLOW, |
| 98 | IB_USER_VERBS_EX_CMD_CREATE_WQ, | ||
| 99 | IB_USER_VERBS_EX_CMD_MODIFY_WQ, | ||
| 100 | IB_USER_VERBS_EX_CMD_DESTROY_WQ, | ||
| 98 | }; | 101 | }; |
| 99 | 102 | ||
| 100 | /* | 103 | /* |
| @@ -946,4 +949,42 @@ struct ib_uverbs_destroy_srq_resp { | |||
| 946 | __u32 events_reported; | 949 | __u32 events_reported; |
| 947 | }; | 950 | }; |
| 948 | 951 | ||
| 952 | struct ib_uverbs_ex_create_wq { | ||
| 953 | __u32 comp_mask; | ||
| 954 | __u32 wq_type; | ||
| 955 | __u64 user_handle; | ||
| 956 | __u32 pd_handle; | ||
| 957 | __u32 cq_handle; | ||
| 958 | __u32 max_wr; | ||
| 959 | __u32 max_sge; | ||
| 960 | }; | ||
| 961 | |||
| 962 | struct ib_uverbs_ex_create_wq_resp { | ||
| 963 | __u32 comp_mask; | ||
| 964 | __u32 response_length; | ||
| 965 | __u32 wq_handle; | ||
| 966 | __u32 max_wr; | ||
| 967 | __u32 max_sge; | ||
| 968 | __u32 wqn; | ||
| 969 | }; | ||
| 970 | |||
| 971 | struct ib_uverbs_ex_destroy_wq { | ||
| 972 | __u32 comp_mask; | ||
| 973 | __u32 wq_handle; | ||
| 974 | }; | ||
| 975 | |||
| 976 | struct ib_uverbs_ex_destroy_wq_resp { | ||
| 977 | __u32 comp_mask; | ||
| 978 | __u32 response_length; | ||
| 979 | __u32 events_reported; | ||
| 980 | __u32 reserved; | ||
| 981 | }; | ||
| 982 | |||
| 983 | struct ib_uverbs_ex_modify_wq { | ||
| 984 | __u32 attr_mask; | ||
| 985 | __u32 wq_handle; | ||
| 986 | __u32 wq_state; | ||
| 987 | __u32 curr_wq_state; | ||
| 988 | }; | ||
| 989 | |||
| 949 | #endif /* IB_USER_VERBS_H */ | 990 | #endif /* IB_USER_VERBS_H */ |
