RDMA/rxe: Use structs to describe the uABI instead of opencoding

Open coding pointer math is not acceptable for describing the uABI in
RDMA. Provide structs for all the cases.

The udata is casted to the struct as close to the verbs entry point
as possible for maximum clarity. Function signatures and so forth
are revised to allow for this.

Tested-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Jason Gunthorpe
2018-03-15 15:58:02 -06:00
parent b92ec0fe32
commit 0c43ab371b
8 changed files with 116 additions and 79 deletions
+22
View File
@@ -144,4 +144,26 @@ struct rxe_recv_wqe {
struct rxe_dma_info dma;
};
struct rxe_create_cq_resp {
struct mminfo mi;
};
struct rxe_resize_cq_resp {
struct mminfo mi;
};
struct rxe_create_qp_resp {
struct mminfo rq_mi;
struct mminfo sq_mi;
};
struct rxe_create_srq_resp {
struct mminfo mi;
__u32 srq_num;
};
struct rxe_modify_srq_cmd {
__u64 mmap_info_addr;
};
#endif /* RDMA_USER_RXE_H */