Skip to content

Commit 7e762be

Browse files
Knut OmangMukesh Kacker
authored andcommitted
ib_uverbs: Support for kernel implementation of XRC calls from user space
Extends the kernel/user space interface for work requests to also provide the XRC shared receive queue number. Necessary to support kernel level implementation of user verbs for XRC. Requires a corresponding libibverbs change to support XRC. Orabug: 20930262 Signed-off-by: Knut Omang <[email protected]> Signed-off-by: Mukesh Kacker <[email protected]>
1 parent 5378de7 commit 7e762be

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/infiniband/core/uverbs_cmd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,6 +2246,8 @@ ssize_t ib_uverbs_post_send(struct ib_uverbs_file *file,
22462246
next->ex.imm_data =
22472247
(__be32 __force) user_wr->ex.imm_data;
22482248
} else {
2249+
if (qp->qp_type == IB_QPT_XRC_INI)
2250+
next->xrc_remote_srq_num = user_wr->xrc_remote_srq_num;
22492251
switch (next->opcode) {
22502252
case IB_WR_RDMA_WRITE_WITH_IMM:
22512253
next->ex.imm_data =

include/uapi/rdma/ib_user_verbs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,8 @@ struct ib_uverbs_send_wr {
664664
__u32 reserved;
665665
} ud;
666666
} wr;
667+
__u32 xrc_remote_srq_num;
668+
__u32 reserved;
667669
};
668670

669671
struct ib_uverbs_post_send {

0 commit comments

Comments
 (0)