Whamcloud - gitweb
LU-506 kernel: FC15 - tcp_sendpage() uses struct sock.
[fs/lustre-release.git] / lnet / autoconf / ofed.m4
index aefc27d..826dcac 100644 (file)
@@ -93,4 +93,23 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
        ],[
                AC_MSG_RESULT(no)
        ])
+
+       AC_MSG_CHECKING([if OFED has rdma_set_reuseaddr])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/version.h>
+               #include <linux/pci.h>
+               #if !HAVE_GFP_T
+               typedef int gfp_t;
+               #endif
+               #include <rdma/rdma_cm.h>
+       ],[
+               rdma_set_reuseaddr(NULL, 1);
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_OFED_RDMA_SET_REUSEADDR, 1,
+                         [rdma_set_reuse defined])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
 ])