Skip to content
Open
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 @@ -524,6 +524,11 @@ if [test $HAVE_IBV_WR_API = yes]; then
if [test $HAVE_UNSOLICITED_WRITE_RECV_SRD = yes]; then
AC_DEFINE([HAVE_SRD_WITH_UNSOLICITED_WRITE_RECV], [1], [Have SRD with unsolicited RDMA write with imm. support])
fi
AC_TRY_LINK([#include <infiniband/efadv.h>],
[struct efadv_qp_init_attr *efa_attr; int x = efa_attr->sl;], [HAVE_SRD_QP_SL_SUPPORT=yes], [HAVE_SRD_QP_SL_SUPPORT=no])
if [test $HAVE_SRD_QP_SL_SUPPORT = yes]; then
AC_DEFINE([HAVE_SRD_QP_SL], [1], [Have SRD QP SL support])
fi
else
AC_CHECK_LIB([efa], [efadv_create_driver_qp], [HAVE_SRD=yes], [HAVE_SRD=no])
fi
Expand Down
7 changes: 7 additions & 0 deletions src/perftest_parameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,6 +1801,13 @@ static void force_dependecies(struct perftest_parameters *user_param)
fprintf(stderr, " SRD does not support RDMA_CM\n");
exit(1);
}
#ifndef HAVE_SRD_QP_SL
if (user_param->sl != DEF_SL) {
printf(RESULT_LINE);
fprintf(stderr, " SRD does not support non-default SL\n");
exit(1);
}
#endif
user_param->cq_mod = 1;
}

Expand Down
3 changes: 3 additions & 0 deletions src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -2889,6 +2889,9 @@ struct ibv_qp* ctx_qp_create(struct pingpong_context *ctx,
if (user_param->use_unsolicited_write)
efa_attr.flags |= EFADV_QP_FLAGS_UNSOLICITED_WRITE_RECV;
#endif
#ifdef HAVE_SRD_QP_SL
efa_attr.sl = user_param->sl;
#endif
qp = efadv_create_qp_ex(ctx->context, &attr_ex,
&efa_attr, sizeof(efa_attr));
#else
Expand Down