summaryrefslogtreecommitdiff
path: root/include/uapi/rdma
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2021-10-07 23:40:47 +0300
committerJason Gunthorpe <jgg@nvidia.com>2021-10-12 19:25:26 +0300
commitcfc0312d9c83a5bbb66fa73ba47dd1301d75b2e8 (patch)
treeb196c35eff87fc2b02dc1408d6ebaad02c2ad08a /include/uapi/rdma
parentf4e56ec4452f48b8292dcf0e1c4bdac83506fb8b (diff)
downloadlinux-cfc0312d9c83a5bbb66fa73ba47dd1301d75b2e8.tar.xz
RDMA/rxe: Move AV from rxe_send_wqe to rxe_send_wr
Move the struct rxe_av av from struct rxe_send_wqe to struct rxe_send_wr placing it in wr.ud at the same offset as it was previously. This has the effect of increasing the size of struct rxe_send_wr while keeping the size of struct rxe_send_wqe the same. This better reflects the use of this field which is only used for UD sends. This change has no effect on ABI compatibility so the modified rxe driver will operate with older versions of rdma-core. Link: https://lore.kernel.org/r/20211007204051.10086-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/rdma')
-rw-r--r--include/uapi/rdma/rdma_user_rxe.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/uapi/rdma/rdma_user_rxe.h b/include/uapi/rdma/rdma_user_rxe.h
index e283c2220aba..2f1ebbe96434 100644
--- a/include/uapi/rdma/rdma_user_rxe.h
+++ b/include/uapi/rdma/rdma_user_rxe.h
@@ -98,6 +98,9 @@ struct rxe_send_wr {
__u32 remote_qpn;
__u32 remote_qkey;
__u16 pkey_index;
+ __u16 reserved;
+ __u32 pad[5];
+ struct rxe_av av;
} ud;
struct {
__aligned_u64 addr;
@@ -148,7 +151,6 @@ struct rxe_dma_info {
struct rxe_send_wqe {
struct rxe_send_wr wr;
- struct rxe_av av;
__u32 status;
__u32 state;
__aligned_u64 iova;