Skip to content

Commit 67cdb40

Browse files
author
Roland Dreier
committed
[IB] uverbs: Implement more commands
Add kernel support for userspace calling poll CQ, request CQ notification, post send, post receive, post SRQ receive, create AH and destroy AH commands. These commands allow us to support userspace verbs for devices that can't perform these operations directly from userspace (eg the PathScale HCA). Signed-off-by: Roland Dreier <rolandd@cisco.com>
1 parent 91ecd4a commit 67cdb40

File tree

3 files changed

+572
-1
lines changed

3 files changed

+572
-1
lines changed

drivers/infiniband/core/uverbs.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (c) 2005 Cisco Systems. All rights reserved.
44
* Copyright (c) 2005 Mellanox Technologies. All rights reserved.
55
* Copyright (c) 2005 Voltaire, Inc. All rights reserved.
6+
* Copyright (c) 2005 PathScale, Inc. All rights reserved.
67
*
78
* This software is available to you under a choice of one of two
89
* licenses. You may choose to be licensed under the terms of the GNU
@@ -140,10 +141,17 @@ IB_UVERBS_DECLARE_CMD(reg_mr);
140141
IB_UVERBS_DECLARE_CMD(dereg_mr);
141142
IB_UVERBS_DECLARE_CMD(create_comp_channel);
142143
IB_UVERBS_DECLARE_CMD(create_cq);
144+
IB_UVERBS_DECLARE_CMD(poll_cq);
145+
IB_UVERBS_DECLARE_CMD(req_notify_cq);
143146
IB_UVERBS_DECLARE_CMD(destroy_cq);
144147
IB_UVERBS_DECLARE_CMD(create_qp);
145148
IB_UVERBS_DECLARE_CMD(modify_qp);
146149
IB_UVERBS_DECLARE_CMD(destroy_qp);
150+
IB_UVERBS_DECLARE_CMD(post_send);
151+
IB_UVERBS_DECLARE_CMD(post_recv);
152+
IB_UVERBS_DECLARE_CMD(post_srq_recv);
153+
IB_UVERBS_DECLARE_CMD(create_ah);
154+
IB_UVERBS_DECLARE_CMD(destroy_ah);
147155
IB_UVERBS_DECLARE_CMD(attach_mcast);
148156
IB_UVERBS_DECLARE_CMD(detach_mcast);
149157
IB_UVERBS_DECLARE_CMD(create_srq);

0 commit comments

Comments
 (0)