Added headers and macros to support MLX4 on RHEL7.4
authorVladimir Sokolovsky <vlad@mellanox.com>
Fri, 27 Jul 2018 19:40:31 +0000 (14:40 -0500)
committerVladimir Sokolovsky <vlad@mellanox.com>
Fri, 27 Jul 2018 19:40:31 +0000 (14:40 -0500)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
config/rdma.m4
include/linux/compat-2.6.h

index 7016073..eac2cdb 100644 (file)
@@ -6588,6 +6588,35 @@ AC_DEFUN([LINUX_CONFIG_COMPAT],
        ],[
                AC_MSG_RESULT(no)
        ])
+
+       AC_MSG_CHECKING([if linux/bpf_trace exists])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/bpf.h>
+               #include <linux/bpf_trace.h>
+       ],[
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_LINUX_BPF_TRACE_H, 1,
+                         [linux/bpf_trace exists])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
+
+       AC_MSG_CHECKING([if linux/net_tstamp.h has HWTSTAMP_FILTER_NTP_ALL])
+       LB_LINUX_TRY_COMPILE([
+               #include <linux/net_tstamp.h>
+       ],[
+               int x = HWTSTAMP_FILTER_NTP_ALL;
+
+               return 0;
+       ],[
+               AC_MSG_RESULT(yes)
+               AC_DEFINE(HAVE_HWTSTAMP_FILTER_NTP_ALL, 1,
+                         [HWTSTAMP_FILTER_NTP_ALL is defined])
+       ],[
+               AC_MSG_RESULT(no)
+       ])
 ])
 #
 # COMPAT_CONFIG_HEADERS
index 593ac25..2526499 100644 (file)
@@ -51,10 +51,12 @@ void backport_dependency_symbol(void);
 #include <linux/compat-3.15.h>
 #include <linux/compat-3.16.h>
 #include <linux/compat-3.17.h>
+#include <linux/compat-3.19.h>
 #include <linux/compat-4.0.h>
 #include <linux/compat-4.1.h>
 #include <linux/compat-4.5.h>
 #include <linux/compat-4.9.h>
+#include <linux/compat-4.11.h>
 #include <linux/compat-4.16.h>
 #include <linux/compat-4.17.h>