RDMA/rxe: Create AH index and return to user space
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 7 Oct 2021 20:40:49 +0000 (15:40 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Oct 2021 16:25:26 +0000 (13:25 -0300)
commit73a54932100375ba94b31710f1e3f1234f23be0b
treecd0be4cfd74d32397a36452aa0070a56e4949996
parent99c13a3e29653badefd9ca36f62dfa84db504f1c
RDMA/rxe: Create AH index and return to user space

Make changes to rdma_user_rxe.h to allow indexing AH objects, passing the
index in UD send WRs to the driver and returning the index to the rxe
provider.

Modify rxe_create_ah() to add an index to AH when created and if called
from a new user provider return it to user space. If called from an old
provider mark the AH as not having a useful index.  Modify rxe_destroy_ah
to drop the index before deleting the object.

Link: https://lore.kernel.org/r/20211007204051.10086-4-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_verbs.c
drivers/infiniband/sw/rxe/rxe_verbs.h
include/uapi/rdma/rdma_user_rxe.h