Whamcloud - gitweb
LU-6790 build: handle external Intel OFED stack 82/15582/2
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 13 Jul 2015 14:01:37 +0000 (10:01 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 25 Jul 2015 03:12:32 +0000 (03:12 +0000)
Besides the Mellanox stack Intel also releases their own
OFED stack. Just like the Mellanox stack this Intel OFED
stack has a compatibility layer to support distributions
kernels. This layer provided stomps over the default
kernel headers so like the Mellanox stack compact-2.6.h
has to be placed before all other headers. The reason
it didn't show up before with the Mellanox stacks is the
Intel stack additionally stomps the pci layer of the

Change-Id: If565f25432cf87723b69e5d65e00a7d5d301dc4f
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: http://review.whamcloud.com/15582
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>

index 84d8b26..649e484 100644 (file)
@@ -268,12 +268,12 @@ directory which is likely in ${O2IBPATH%-*}
                LB_CHECK_COMPILE([whether to enable OpenIB gen2 support],
                openib_gen2_support, [
-                       #include <linux/version.h>
-                       #include <linux/pci.h>
-                       #include <linux/gfp.h>
                        #ifdef HAVE_COMPAT_RDMA
                        #include <linux/compat-2.6.h>
+                       #include <linux/version.h>
+                       #include <linux/pci.h>
+                       #include <linux/gfp.h>
                        #include <rdma/rdma_cm.h>
                        #include <rdma/ib_cm.h>
                        #include <rdma/ib_verbs.h>