diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2020-10-08 16:28:18 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-10-08 20:07:50 -0300 |
commit | 1858d98b83940f7a0132569a2cf2017a0063e5d0 (patch) | |
tree | ebc8f677c8a4caa93a943958253723ef38dad5fc /drivers/infiniband/sw/rxe/rxe_req.c | |
parent | IB/hfi,rdmavt,qib,opa_vnic: Update MAINTAINERS (diff) | |
download | linux-dev-1858d98b83940f7a0132569a2cf2017a0063e5d0.tar.xz linux-dev-1858d98b83940f7a0132569a2cf2017a0063e5d0.zip |
RDMA/rxe: Remove duplicate entries in struct rxe_mr
Struct rxe_mem had pd, lkey and rkey values both in itself and in the
struct ib_mr which is also included in rxe_mem.
Delete these entries and replace references with the ones in ibmr.Add
mr_pd, mr_lkey and mr_rkey macros which extract these values from mr.
Link: https://lore.kernel.org/r/20201008212818.265303-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_req.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_req.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index e27585ce9eb7..af3923bf0a36 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -617,8 +617,8 @@ next_wqe: rmr->state = RXE_MEM_STATE_VALID; rmr->access = wqe->wr.wr.reg.access; - rmr->lkey = wqe->wr.wr.reg.key; - rmr->rkey = wqe->wr.wr.reg.key; + rmr->ibmr.lkey = wqe->wr.wr.reg.key; + rmr->ibmr.rkey = wqe->wr.wr.reg.key; rmr->iova = wqe->wr.wr.reg.mr->iova; wqe->state = wqe_state_done; wqe->status = IB_WC_SUCCESS; |