From 32b356cd04c8365eae48015c2c400c951ffe091a Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Tue, 7 May 2019 19:12:15 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453705 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- configure | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/configure b/configure index e19971156a..be0db3659a 100755 --- a/configure +++ b/configure @@ -407,14 +407,13 @@ if [[ "$OSTYPE" == "freebsd"* ]]; then fi if [ "${CONFIG[RDMA]}" = "y" ]; then - if [ "$OSTYPE" != "FreeBSD"* ]; then - if echo -e '#include \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 \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