Skip to content

Commit

Permalink
tests: Correct query QP attributes
Browse files Browse the repository at this point in the history
IBV_QP_STATE should be used on query QP instead of IBV_QP_CUR_STATE,
which should only be used for modify QP commands.

Signed-off-by: Chen Brasch <cbrasch@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
  • Loading branch information
Chen Brasch authored and gal-pressman committed Jun 30, 2020
1 parent b27e504 commit 79f6e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_qp.py
Expand Up @@ -248,7 +248,7 @@ def test_query_qp(self):
if ex.error_code == errno.EOPNOTSUPP:
raise unittest.SkipTest('Create QP with extended attrs is not supported')
raise ex
qp_attr, qp_init_attr = qp.query(e.IBV_QP_CUR_STATE |
qp_attr, qp_init_attr = qp.query(e.IBV_QP_STATE |
e.IBV_QP_CAP)
verify_qp_attrs(caps, e.IBV_QPS_RESET, qp_init_attr,
qp_attr)
Expand All @@ -257,7 +257,7 @@ def test_query_qp(self):
qia.qp_type = qpt
caps = qia.cap # Save them to verify values later
qp = QP(pd, qia)
qp_attr, qp_init_attr = qp.query(e.IBV_QP_CUR_STATE |
qp_attr, qp_init_attr = qp.query(e.IBV_QP_STATE |
e.IBV_QP_CAP)
verify_qp_attrs(caps, e.IBV_QPS_RESET, qp_init_attr,
qp_attr)
Expand Down

0 comments on commit 79f6e8e

Please sign in to comment.