diff options
| author | Shani Michaeli <shanim@mellanox.com> | 2013-02-06 11:19:13 -0500 |
|---|---|---|
| committer | Roland Dreier <roland@purestorage.com> | 2013-02-21 14:59:09 -0500 |
| commit | 6b52a12bc3fc39053b5bac4d4927ec8d974f8f60 (patch) | |
| tree | ee722399af38f19b84773e87a519b1da3d2d6268 /include/uapi/rdma | |
| parent | 7083e42ee2ff43a11481e0e7211ec4f9ac68cb79 (diff) | |
IB/uverbs: Implement memory windows support in uverbs
The existing user/kernel uverbs API has IB_USER_VERBS_CMD_ALLOC/DEALLOC_MW.
Implement these calls, along with destroying user memory windows during
process cleanup.
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Shani Michaeli <shanim@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/uapi/rdma')
| -rw-r--r-- | include/uapi/rdma/ib_user_verbs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h index 81aba3a73aa3..805711ea2005 100644 --- a/include/uapi/rdma/ib_user_verbs.h +++ b/include/uapi/rdma/ib_user_verbs.h | |||
| @@ -261,6 +261,22 @@ struct ib_uverbs_dereg_mr { | |||
| 261 | __u32 mr_handle; | 261 | __u32 mr_handle; |
| 262 | }; | 262 | }; |
| 263 | 263 | ||
| 264 | struct ib_uverbs_alloc_mw { | ||
| 265 | __u64 response; | ||
| 266 | __u32 pd_handle; | ||
| 267 | __u8 mw_type; | ||
| 268 | __u8 reserved[3]; | ||
| 269 | }; | ||
| 270 | |||
| 271 | struct ib_uverbs_alloc_mw_resp { | ||
| 272 | __u32 mw_handle; | ||
| 273 | __u32 rkey; | ||
| 274 | }; | ||
| 275 | |||
| 276 | struct ib_uverbs_dealloc_mw { | ||
| 277 | __u32 mw_handle; | ||
| 278 | }; | ||
| 279 | |||
| 264 | struct ib_uverbs_create_comp_channel { | 280 | struct ib_uverbs_create_comp_channel { |
| 265 | __u64 response; | 281 | __u64 response; |
| 266 | }; | 282 | }; |
