projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ae137
)
RDMA/rxe: Add bind MW fields to rxe_send_wr
author
Bob Pearson
<rpearsonhpe@gmail.com>
Tue, 8 Jun 2021 04:25:44 +0000
(23:25 -0500)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Wed, 16 Jun 2021 23:51:17 +0000
(20:51 -0300)
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>
include/uapi/rdma/rdma_user_rxe.h
patch
|
blob
|
history
diff --git
a/include/uapi/rdma/rdma_user_rxe.h
b/include/uapi/rdma/rdma_user_rxe.h
index
068433e
..
e283c22
100644
(file)
--- 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;
};