Skip to content

Commit

Permalink
perftest: Turn on comp_mask create flag and add DDP indication
Browse files Browse the repository at this point in the history
- In order to create qp with OOO spport need to set
MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS on.
- add indication in the report for DDP support.

Signed-off-by: Shmuel Shaul <sshaul@nvidia.com>
  • Loading branch information
sshaulnv committed Oct 31, 2024
1 parent ecaccf0 commit 1ed34b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/perftest_parameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ static void init_perftest_params(struct perftest_parameters *user_param)
user_param->use_unsolicited_write = 0;
user_param->congest_type = OFF;
user_param->no_lock = OFF;
user_param->use_ddp = OFF;
}

static int open_file_write(const char* file_path)
Expand Down Expand Up @@ -3576,7 +3577,7 @@ void ctx_print_test_info(struct perftest_parameters *user_param)
#endif //HAVE_TD_API
#endif

printf(" ibv_wr* API : %s\n", user_param->use_old_post_send ? "OFF" : "ON");
printf(" ibv_wr* API : %s\t\tUsing DDP : %s\n", user_param->use_old_post_send ? "OFF" : "ON", user_param->use_ddp ? "ON" : "OFF");
if (user_param->machine == CLIENT || user_param->duplex) {
printf(" TX depth : %d\n",user_param->tx_depth);
}
Expand Down
1 change: 1 addition & 0 deletions src/perftest_parameters.h
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ struct perftest_parameters {
int ah_allocated;
int use_write_with_imm;
int use_unsolicited_write;
int use_ddp;
};

struct report_options {
Expand Down
2 changes: 2 additions & 0 deletions src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,9 @@ struct ibv_qp* ctx_qp_create(struct pingpong_context *ctx,
}

if (ctx_dv.comp_mask & MLX5DV_CONTEXT_MASK_OOO_RECV_WRS) {
user_param->use_ddp = ON;
attr_dv.create_flags |= MLX5DV_QP_CREATE_OOO_DP;
attr_dv.comp_mask |= MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS;
}
#endif
if (user_param->connection_type == DC)
Expand Down

0 comments on commit 1ed34b1

Please sign in to comment.