Revert "rpma: RPMA engine requires librpma>=v0.10.0 with rpma_mr_advise()"
authorTomasz Gromadzki <tomasz.gromadzki@intel.com>
Thu, 29 Aug 2024 11:48:03 +0000 (13:48 +0200)
committerTomasz Gromadzki <tomasz.gromadzki@intel.com>
Thu, 29 Aug 2024 11:48:03 +0000 (13:48 +0200)
This reverts commit e662bc9815de906e3498f4261ec5a28481872a18.

configure

index 30867ea9e64315284631ab797faefe0ae6181edb..420ce42a3acf42a1ed8131d2fff9eed2d4173dae 100755 (executable)
--- a/configure
+++ b/configure
@@ -1031,16 +1031,17 @@ print_config "rdmacm" "$rdmacm"
 
 ##########################################
 # librpma probe
-# The librpma engine requires librpma>=v0.10.0 with rpma_mr_advise().
 if test "$librpma" != "yes" ; then
   librpma="no"
 fi
 cat > $TMPC << EOF
+#include <stdio.h>
 #include <librpma.h>
-int main(void)
+int main(int argc, char **argv)
 {
-  void *ptr = rpma_mr_advise;
-  (void) ptr; /* unused */
+  enum rpma_conn_event event = RPMA_CONN_REJECTED;
+  (void) event; /* unused */
+  rpma_log_set_threshold(RPMA_LOG_THRESHOLD, RPMA_LOG_LEVEL_INFO);
   return 0;
 }
 EOF