linux-stable/drivers/infiniband
Md Haris Iqbal e4adb10bc5 RDMA/rxe: For invalidate compare according to set keys in mr
[ Upstream commit 174e7b1370 ]

The 'rkey' input can be an lkey or rkey, and in rxe the lkey or rkey have
the same value, including the variant bits.

So, if mr->rkey is set, compare the invalidate key with it, otherwise
compare with the mr->lkey.

Since we already did a lookup on the non-varient bits to get this far, the
check's only purpose is to confirm that the wqe has the correct variant
bits.

Fixes: 001345339f ("RDMA/rxe: Separate HW and SW l/rkeys")
Link: https://lore.kernel.org/r/20220707073006.328737-1-haris.phnx@gmail.com
Signed-off-by: Md Haris Iqbal <haris.phnx@gmail.com>
Reviewed-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:57 +02:00
..
core RDMA/cm: Fix memory leak in ib_cm_insert_listen 2022-07-07 17:53:26 +02:00
hw RDMA/hfi1: fix potential memory leak in setup_base_ctxt() 2022-08-17 14:23:55 +02:00
sw RDMA/rxe: For invalidate compare according to set keys in mr 2022-08-17 14:23:57 +02:00
ulp RDMA/rtrs-clt: Replace list_next_or_null_rr_rcu with an inline function 2022-08-17 14:23:55 +02:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile