OSDN Git Service

RDMA/rxe: Remove duplicate entries in struct rxe_mr
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 8 Oct 2020 21:28:18 +0000 (16:28 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 8 Oct 2020 23:07:50 +0000 (20:07 -0300)
commit1858d98b83940f7a0132569a2cf2017a0063e5d0
treeebc8f677c8a4caa93a943958253723ef38dad5fc
parentf2e7449f175fee0a86fe7bd0fca2695074320801
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>
drivers/infiniband/sw/rxe/rxe_mr.c
drivers/infiniband/sw/rxe/rxe_req.c
drivers/infiniband/sw/rxe/rxe_verbs.c
drivers/infiniband/sw/rxe/rxe_verbs.h