Commit 660a5936 authored by Bob Pearson's avatar Bob Pearson Committed by Jason Gunthorpe
Browse files

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: default avatarBob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 15ae1375
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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;
};