Skip to content

Commit a07e85a

Browse files
committed
Perftest: Fix specifying QP number 1 in non bw test
Original message says that multiple QPs is only available for bw test, but even if user uses `-q 1`, it would still fail and print error, which doesn't match with the message. Change the logic to check if user specified more than 2 QPs for non-bw tests. Signed-off-by: yuezelong <[email protected]>
1 parent 0c5918d commit a07e85a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/perftest_parameters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2886,7 +2886,7 @@ int parser(struct perftest_parameters *user_param,char *argv[], int argc)
28862886
case 'x': CHECK_VALUE_IN_RANGE_UNS(user_param->gid_index,uint8_t,MIN_GID_IX,MAX_GID_IX,"Gid index",not_int_ptr);
28872887
user_param->use_gid_user = 1; break;
28882888
case 'c': change_conn_type(&user_param->connection_type,user_param->verb,optarg); break;
2889-
case 'q': if (user_param->tst != BW) {
2889+
case 'q': if (user_param->tst != BW && user_param->num_of_qps > 1) {
28902890
fprintf(stderr," Multiple QPs only available on bw tests\n");
28912891
free(duplicates_checker);
28922892
return FAILURE;

0 commit comments

Comments
 (0)