configure: check IBV_WR_SEND_WITH_INV not only for Linux

If the user wants to build RDMA on BSD and IBV_WR_SEND_WITH_INV
is unavailable there he'll now get a warning message.

Change-Id: Ie6c6ce55d21de519bb371ceed44fb1e01d6dc878
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453705
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Darek Stojaczyk 2019-05-07 19:12:15 +02:00 committed by Jim Harris
parent c4a3b31278
commit 32b356cd04

16
configure vendored
View File

@ -407,14 +407,13 @@ if [[ "$OSTYPE" == "freebsd"* ]]; then
fi
if [ "${CONFIG[RDMA]}" = "y" ]; then
if [ "$OSTYPE" != "FreeBSD"* ]; then
if echo -e '#include <infiniband/verbs.h>\n \
int main(void){ return !!IBV_WR_SEND_WITH_INV; }\n' \
| ${CC:-cc} ${CFLAGS} -x c -c -o /dev/null - 2>/dev/null; then
CONFIG[RDMA_SEND_WITH_INVAL]="y"
else
CONFIG[RDMA_SEND_WITH_INVAL]="n"
echo "
if echo -e '#include <infiniband/verbs.h>\n \
int main(void){ return !!IBV_WR_SEND_WITH_INV; }\n' \
| ${CC:-cc} ${CFLAGS} -x c -c -o /dev/null - 2>/dev/null; then
CONFIG[RDMA_SEND_WITH_INVAL]="y"
else
CONFIG[RDMA_SEND_WITH_INVAL]="n"
echo "
*******************************************************************************
WARNING: The Infiniband Verbs opcode Send With Invalidate is either not
supported or is not functional with the current version of libibverbs installed
@ -428,7 +427,6 @@ be unable to leverage that operation using the currently installed version
of libibverbs, so Linux kernel NVMe-oF initiators based on kernels greater
than or equal to 4.14 will see significantly reduced performance.
*******************************************************************************"
fi
fi
fi