RDMA/rxe: Use structs to describe the uABI instead of opencoding
authorJason Gunthorpe <jgg@mellanox.com>
Tue, 13 Mar 2018 22:33:18 +0000 (16:33 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:58:02 +0000 (15:58 -0600)
commit0c43ab371bcb07d9ed9c95ea116e6d1d703b56ca
tree4222f1b36834ed86a0e1d1bc503756b890abd6b1
parentb92ec0fe3224dbce7d50fb6cbfaf4eaf4a6f0359
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>
drivers/infiniband/sw/rxe/rxe_cq.c
drivers/infiniband/sw/rxe/rxe_loc.h
drivers/infiniband/sw/rxe/rxe_qp.c
drivers/infiniband/sw/rxe/rxe_queue.c
drivers/infiniband/sw/rxe/rxe_queue.h
drivers/infiniband/sw/rxe/rxe_srq.c
drivers/infiniband/sw/rxe/rxe_verbs.c
include/uapi/rdma/rdma_user_rxe.h