Skip to content

Commit 2e88853

Browse files
committed
Perftest: add error message for DC runs with small queue depth
when using srq (DC use srq) the queue depth (determined by the number of iterations) should be greater than the number of QP's. need to add an error message and disable this option. Signed-off-by: Shmuel Shaul <[email protected]>
1 parent 463300b commit 2e88853

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/perftest_parameters.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,6 +1174,9 @@ static void force_dependecies(struct perftest_parameters *user_param)
11741174
user_param->use_srq = ON;
11751175
}
11761176

1177+
if (user_param->connection_type == DC && !user_param->use_srq)
1178+
user_param->use_srq = ON;
1179+
11771180
if (user_param->use_srq && user_param->verb == SEND &&
11781181
user_param->num_of_qps > user_param->rx_depth) {
11791182
printf(RESULT_LINE);
@@ -1467,9 +1470,6 @@ static void force_dependecies(struct perftest_parameters *user_param)
14671470
}
14681471
}
14691472

1470-
if (user_param->connection_type == DC && !user_param->use_srq)
1471-
user_param->use_srq = ON;
1472-
14731473
if (!user_param->use_old_post_send)
14741474
{
14751475
#ifndef HAVE_IBV_WR_API

0 commit comments

Comments
 (0)