On Thu, Jul 07, 2022 at 09:30:06AM +0200, Md Haris Iqbal wrote: > 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: 001345339f4c ("RDMA/rxe: Separate HW and SW l/rkeys") > Cc: rpearsonhpe@xxxxxxxxx > Signed-off-by: Md Haris Iqbal <haris.phnx@xxxxxxxxx> > Reviewed-by: Bob Pearson <rpearsonhpe@xxxxxxxxx> > --- > drivers/infiniband/sw/rxe/rxe_loc.h | 2 +- > drivers/infiniband/sw/rxe/rxe_mr.c | 12 ++++++------ > 2 files changed, 7 insertions(+), 7 deletions(-) Applied to for-next, thanks Jason