History

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.

Bob Pearson committed 5 years ago

Commit cfc03121 parent f4e56ec3 files · +6 −3Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/rdma/rdma_user_rxe.h+3−1
@@ -98,6 +98,9 @@ struct rxe_send_wr { · 97 unmodified lines
9898 __u32 remote_qpn;
9999 __u32 remote_qkey;
100100 __u16 pkey_index;
101+ __u16 reserved;
102+ __u32 pad[5];
103+ struct rxe_av av;
101104 } ud;
102105 struct {
103106 __aligned_u64 addr;
@@ -148,7 +151,6 @@ struct rxe_dma_info { · 44 unmodified lines
148151
149152 struct rxe_send_wqe {
150153 struct rxe_send_wr wr;
151− struct rxe_av av;
152154 __u32 status;
153155 __u32 state;
154156 __aligned_u64 iova;