From ef27ae99376e5b672c12e856fb72c2d94d8d2cf5 Mon Sep 17 00:00:00 2001 From: Bob Pearson Date: Thu, 19 May 2022 10:58:11 -0500 Subject: pyverbs: Increment the correct rkey in test_qpex [ Upstream commit 0c4d91db686ef4e4364aae2514d22e8462335bd9 ] The local bind is manipulating the local rkey, not the server rkey. Bind doesn't check that the high bits are correct so this was missed. Fixes: 9fca2824b5ec ("tests: Retrieve tests that generates mlx5 CQE errors") Signed-off-by: Bob Pearson Signed-off-by: Jason Gunthorpe Signed-off-by: Nicolas Morey-Chaisemartin --- tests/test_qpex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_qpex.py b/tests/test_qpex.py index 8f3f338..a4c9991 100644 --- a/tests/test_qpex.py +++ b/tests/test_qpex.py @@ -300,7 +300,7 @@ class QpExTestCase(RDMATestCase): if ex.error_code == errno.EOPNOTSUPP: raise unittest.SkipTest('Memory Window allocation is not supported') raise ex - new_key = inc_rkey(server.mr.rkey) + new_key = inc_rkey(mw.rkey) server.qp.wr_bind_mw(mw, new_key, bind_info) server.qp.wr_complete() u.poll_cq(server.cq) -- 2.34.1