RDMA/rxe: Separate HW and SW l/rkeys
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 14 Sep 2021 16:42:05 +0000 (11:42 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Sep 2021 13:14:59 +0000 (10:14 -0300)
commit001345339f4ca85790a1644a74e33ae77ac116be
treed69c29dc17645afe48eb9b4aa9e7fd2be799fdc4
parent47b7f7064b078e7cf3f5a51396d60d8e16a49874
RDMA/rxe: Separate HW and SW l/rkeys

Separate software and simulated hardware lkeys and rkeys for MRs and MWs.
This makes struct ib_mr and struct ib_mw isolated from hardware changes
triggered by executing work requests.

This change fixes a bug seen in blktest.

Link: https://lore.kernel.org/r/20210914164206.19768-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_loc.h
drivers/infiniband/sw/rxe/rxe_mr.c
drivers/infiniband/sw/rxe/rxe_mw.c
drivers/infiniband/sw/rxe/rxe_req.c
drivers/infiniband/sw/rxe/rxe_verbs.h