RDMA/rxe: Let rkey == lkey for local access
authorBob Pearson <rpearsonhpe@gmail.com>
Tue, 30 May 2023 22:13:34 +0000 (17:13 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 9 Jun 2023 16:18:53 +0000 (13:18 -0300)
commit86a3fb55bc4fb2ea0c276d56f03335574a694ee4
treef2572dc84e0c2ae93df1751c4c88c31289a0992c
parent02ed253770fb27380c51af8e7e0903e6905469b6
RDMA/rxe: Let rkey == lkey for local access

In order to conform to other drivers stop using rkey == 0 as an indication
that there are no remote access flags set.  Set rkey == lkey by default
for all MRs.

Link: https://lore.kernel.org/r/20230530221334.89432-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_mr.c