Commit 32b356cd authored by Darek Stojaczyk's avatar Darek Stojaczyk Committed by Jim Harris
Browse files

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: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453705


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent c4a3b312
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -407,7 +407,6 @@ 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
@@ -430,7 +429,6 @@ than or equal to 4.14 will see significantly reduced performance.
*******************************************************************************"
	fi
fi
fi

if [[ "${CONFIG[ISAL]}" = "y" ]] || [[ "${CONFIG[CRYPTO]}" = "y" ]]; then
	ver=$(nasm -v | awk '{print $3}' | sed 's/[^0-9]*//g')