Skip to content

Commit

Permalink
tests: Avoid setting max_inline_data
Browse files Browse the repository at this point in the history
max_inline_data is not supported by all providers, to avoid the failures
of the query QP tests over devices that don't support it, change the
random_qp_cap() to return the QPCap without setting the max_inline_data.

Signed-off-by: Kamal Heib <[email protected]>
Kamalheib committed Apr 19, 2021
1 parent 5b1e6d7 commit 00ffb9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
@@ -194,8 +194,7 @@ def random_qp_cap(attr):
recv_wr = random.randint(1, int(attr.max_qp_wr / 8))
send_sge = random.randint(1, int(attr.max_sge / 2))
recv_sge = random.randint(1, int(attr.max_sge / 2))
inline = random.randint(0, 16)
return QPCap(send_wr, recv_wr, send_sge, recv_sge, inline)
return QPCap(send_wr, recv_wr, send_sge, recv_sge)


def random_qp_create_mask(qpt, attr_ex):

0 comments on commit 00ffb9d

Please sign in to comment.