RDMA/rxe: Lookup kernel AH from ah index in UD WQEs
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 7 Oct 2021 20:40:51 +0000 (15:40 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Oct 2021 16:25:26 +0000 (13:25 -0300)
commite2fe06c9080694f2c28894f14ef8ebfd923ac94d
treee0d5c26f9af0eac76c94e2d0657f704fb8b3a4a2
parent4da698eabf0f7c1c1806670d3fd3895512fdf43b
RDMA/rxe: Lookup kernel AH from ah index in UD WQEs

Add code to rxe_get_av in rxe_av.c to use the AH index in UD send WQEs to
lookup the kernel AH. For old user providers continue to use the AV passed
in WQEs. Move setting pkt->rxe to before the call to rxe_get_av() to get
access to the AH pool.

Link: https://lore.kernel.org/r/20211007204051.10086-6-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_av.c
drivers/infiniband/sw/rxe/rxe_req.c