RDMA/rxe: Fix mw bind to allow any consumer key portion
authorBob Pearson <rpearsonhpe@gmail.com>
Thu, 14 Jul 2022 20:46:20 +0000 (15:46 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 21 Jul 2022 14:35:31 +0000 (11:35 -0300)
commit1603f89935ec86d40a7667e1250392626976ccc2
tree7f7cdbec30b7c60cb088a0a7e828d6a3b87e836d
parent5abb71b47cf338f650fcccda4b13e07faa157742
RDMA/rxe: Fix mw bind to allow any consumer key portion

The current implementation of rxe_check_bind_mw() in rxe_mw.c is incorrect
since it requires the new key portion provided by the mw consumer to be
different than the previous key portion. This is not required by the
IBA. Remove the test.

Link: https://lore.kernel.org/linux-rdma/fb4614e7-4cac-0dc7-3ef7-766dfd10e8f2@gmail.com/
Fixes: 32a577b4c3a9 ("Add support for bind MW work requests")
Link: https://lore.kernel.org/r/20220714204619.13396-1-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_mw.c