Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ AS_IF([test "x$enable_cq_ex" = "xno"],
[USE_CQ_EX=no],
[USE_CQ_EX=yes])

AC_ARG_ENABLE([num_sge_zero],
[AS_HELP_STRING([--enable-num_sge_zero], [Allows using num_sge=0 with RDMA Write With IMM verb])],
[AC_DEFINE([HAVE_NUM_SGE_ZERO], [1], [Use num_sge=0 with RDMA Write With IMM])],
[])

AC_PREFIX_DEFAULT("/usr")

AC_PROG_CC
Expand Down
6 changes: 5 additions & 1 deletion src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -4099,11 +4099,15 @@ int ctx_set_recv_wqes(struct pingpong_context *ctx,struct perftest_parameters *u
}
}

#ifdef HAVE_NUM_SGE_ZERO
// Setting num_sge=0 is supported by the vendor and using it for WRITE_IMM verb.
if (user_param->verb == WRITE_IMM) {
ctx->rwr[i * user_param->recv_post_list + j].sg_list = NULL;
ctx->rwr[i * user_param->recv_post_list + j].num_sge = 0;
}
else {
else
#endif
{
ctx->rwr[i * user_param->recv_post_list + j].sg_list = &ctx->recv_sge_list[i * user_param->recv_post_list + j];
ctx->rwr[i * user_param->recv_post_list + j].num_sge = MAX_RECV_SGE;
}
Expand Down
Loading