summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2021-06-08 07:25:44 +0300
committerJason Gunthorpe <jgg@nvidia.com>2021-06-17 02:51:17 +0300
commit660a59369e1ed96dd0ff1d9d73bad5b48aa50884 (patch)
tree3aa89d595d1e90d7ec49cf2e43773e72bb56d19f /include/uapi
parent15ae1375ea91ae2dee6f12d71a79d8c0a10a30bf (diff)
downloadlinux-660a59369e1ed96dd0ff1d9d73bad5b48aa50884.tar.xz
RDMA/rxe: Add bind MW fields to rxe_send_wr
Add fields to struct rxe_send_wr in rdma_user_rxe.h to support bind MW work requests Link: https://lore.kernel.org/r/20210608042552.33275-2-rpearsonhpe@gmail.com Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/rdma/rdma_user_rxe.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/uapi/rdma/rdma_user_rxe.h b/include/uapi/rdma/rdma_user_rxe.h
index 068433e2229d..e283c2220aba 100644
--- a/include/uapi/rdma/rdma_user_rxe.h
+++ b/include/uapi/rdma/rdma_user_rxe.h
@@ -99,7 +99,16 @@ struct rxe_send_wr {
__u32 remote_qkey;
__u16 pkey_index;
} ud;
+ struct {
+ __aligned_u64 addr;
+ __aligned_u64 length;
+ __u32 mr_lkey;
+ __u32 mw_rkey;
+ __u32 rkey;
+ __u32 access;
+ } mw;
/* reg is only used by the kernel and is not part of the uapi */
+#ifdef __KERNEL__
struct {
union {
struct ib_mr *mr;
@@ -108,6 +117,7 @@ struct rxe_send_wr {
__u32 key;
__u32 access;
} reg;
+#endif
} wr;
};