]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:56 +0000 (14:23 +0200)
commitd6e215234853f6634a550c2053de1c3c4e0424cb
tree46f8339fbc8642ed89050c9d3390b457bc326b28
parente3100dd0f34445fe0dbcd91801f54eb40f3406eb
RDMA/rxe: Fix mw bind to allow any consumer key portion

[ Upstream commit 1c97042be6ccf7d92587048cc5faef41afc05339 ]

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: 73185602f840 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_mw.c