Skip to content

Commit 13f7177

Browse files
author
Dmitry Akhmedzhanov
committed
Added new post_send API usage for RC,UC,UD,XRC
Signed-off-by: Dmitry Akhmedzhanov <[email protected]>
1 parent 410ed96 commit 13f7177

File tree

3 files changed

+561
-27
lines changed

3 files changed

+561
-27
lines changed

configure.ac

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,19 @@ AC_ARG_ENABLE([verbs_exp],
4949
[Disable Verbs Experimental])],
5050
[], [enable_verbs_exp=yes])
5151

52+
AC_ARG_ENABLE([ibv_wr_api],
53+
[AS_HELP_STRING([--enable-ibv_wr_api],
54+
[Enable new post send API])],
55+
[enable_ibv_wr_api=yes], [enable_ibv_wr_api=no])
56+
5257
AS_IF([test "x$enable_verbs_exp" = "xyes"],
5358
[USE_VERBS_EXP=yes],
5459
[USE_VERBS_EXP=no])
5560

61+
AS_IF([test "x$enable_ibv_wr_api" = "xyes"],
62+
[USE_IBV_WR_API=yes],
63+
[USE_IBV_WR_API=no])
64+
5665
AC_PREFIX_DEFAULT("/usr")
5766

5867
AC_PROG_CC
@@ -140,6 +149,16 @@ else
140149
HAVE_VERBS_EXP=no
141150
fi
142151

152+
AC_TRY_LINK([
153+
#include <infiniband/verbs.h>],
154+
[int x = IBV_QP_INIT_ATTR_SEND_OPS_FLAGS;],[HAVE_IBV_WR_API=yes],[HAVE_IBV_WR_API=no])
155+
AM_CONDITIONAL([HAVE_IBV_WR_API],[test "x$HAVE_IBV_WR_API" = "xyes"])
156+
if [test $HAVE_IBV_WR_API = yes] && [test $USE_IBV_WR_API = yes]; then
157+
AC_DEFINE([HAVE_IBV_WR_API], [1], [Have new post send API support])
158+
else
159+
HAVE_IBV_WR_API=no
160+
fi
161+
143162
AC_TRY_LINK([
144163
#include <infiniband/verbs.h>
145164
#include <infiniband/verbs_exp.h>],

0 commit comments

Comments
 (0)