Whamcloud - gitweb
LU-1346 libcfs: cleanup macros in kp30.h
[fs/lustre-release.git] / lnet / autoconf / ofed.m4
index ca31fec..029b84a 100644 (file)
@@ -35,28 +35,14 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
                AC_MSG_RESULT(no)
        ])
 
-       AC_MSG_CHECKING([if OFED supports iWarp transport])
-       LB_LINUX_TRY_COMPILE([
-               #include <linux/version.h>
-               #include <linux/pci.h>
-               #include <linux/gfp.h>
-               #include <rdma/ib_verbs.h>
-       ],[
-               return RDMA_TRANSPORT_IWARP ==
-                      rdma_node_get_transport(RDMA_NODE_RNIC);
-       ],[
-               AC_MSG_RESULT(yes)
-               AC_DEFINE(HAVE_OFED_TRANSPORT_IWARP, 1,
-                         [has transport iWARP])
-       ],[
-               AC_MSG_RESULT(no)
-       ])
-
        AC_MSG_CHECKING([if OFED has RDMA_CM_EVENT_ADDR_CHANGE])
        LB_LINUX_TRY_COMPILE([
                #include <linux/version.h>
                #include <linux/pci.h>
                #include <linux/gfp.h>
+               #ifdef HAVE_COMPAT_RDMA
+               #include <linux/compat-2.6.h>
+               #endif
                #include <rdma/rdma_cm.h>
        ],[
                return (RDMA_CM_EVENT_ADDR_CHANGE == 0);
@@ -73,6 +59,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
                #include <linux/version.h>
                #include <linux/pci.h>
                #include <linux/gfp.h>
+               #ifdef HAVE_COMPAT_RDMA
+               #include <linux/compat-2.6.h>
+               #endif
                #include <rdma/rdma_cm.h>
        ],[
                return (RDMA_CM_EVENT_TIMEWAIT_EXIT == 0);
@@ -89,6 +78,9 @@ AC_DEFUN([LN_CONFIG_OFED_SPEC],
                #include <linux/version.h>
                #include <linux/pci.h>
                #include <linux/gfp.h>
+               #ifdef HAVE_COMPAT_RDMA
+               #include <linux/compat-2.6.h>
+               #endif
                #include <rdma/rdma_cm.h>
        ],[
                rdma_set_reuseaddr(NULL, 1);