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
98 __u32 remote_qpn;98 __u32 remote_qpn;
99 __u32 remote_qkey;99 __u32 remote_qkey;
100 __u16 pkey_index;100 __u16 pkey_index;
101 __u16 reserved;
102 __u32 pad[5];
103 struct rxe_av av;
101 } ud;104 } ud;
102 struct {105 struct {
103 __aligned_u64 addr;106 __aligned_u64 addr;
@@ -148,7 +151,6 @@ struct rxe_dma_info { · 44 unmodified lines
148 151
149struct rxe_send_wqe {152struct rxe_send_wqe {
150 struct rxe_send_wr wr;153 struct rxe_send_wr wr;
151 struct rxe_av av;
152 __u32 status;154 __u32 status;
153 __u32 state;155 __u32 state;
154 __aligned_u64 iova;156 __aligned_u64 iova;