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 @@ -573,6 +573,11 @@ if [test $HAVE_IBV_WR_API = yes]; then
if [test $HAVE_SRD_QP_SL_SUPPORT = yes]; then
AC_DEFINE([HAVE_SRD_QP_SL], [1], [Have SRD QP SL support])
fi
AC_TRY_LINK([#include <infiniband/efadv.h>],
[int x = EFADV_QP_FLAGS_INLINE_WRITE;], [HAVE_WRITE_INLINE_SRD=yes], [HAVE_WRITE_INLINE_SRD=no])
if [test $HAVE_WRITE_INLINE_SRD = yes]; then
AC_DEFINE([HAVE_SRD_WRITE_INLINE], [1], [Have SRD with RDMA write inline support])
fi
else
AC_CHECK_LIB([efa], [efadv_create_driver_qp], [HAVE_SRD=yes], [HAVE_SRD=no])
fi
Expand Down
6 changes: 6 additions & 0 deletions src/perftest_resources.c
Original file line number Diff line number Diff line change
Expand Up @@ -3091,6 +3091,12 @@ struct ibv_qp* ctx_qp_create(struct pingpong_context *ctx,
#ifdef HAVE_SRD_QP_SL
efa_attr.sl = user_param->sl;
#endif
#ifdef HAVE_SRD_WRITE_INLINE
if ((user_param->verb == WRITE || user_param->verb == WRITE_IMM) && user_param->inline_size) {
efa_attr.flags |= EFADV_QP_FLAGS_INLINE_WRITE;
}
#endif

qp = efadv_create_qp_ex(ctx->context, &attr_ex,
&efa_attr, sizeof(efa_attr));
#else
Expand Down
Loading