Skip to content

Commit

Permalink
pyverbs: Increment the correct rkey in test_qpex
Browse files Browse the repository at this point in the history
[ Upstream commit 0c4d91d ]

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: 9fca282 ("tests: Retrieve tests that generates mlx5 CQE errors")
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
Bob Pearson authored and nmorey committed Sep 30, 2022
1 parent f06a8fb commit a857c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_qpex.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def test_qp_ex_rc_bind_mw(self):
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)
Expand Down

0 comments on commit a857c67

Please sign in to comment.