Added include/linux/compat-4.5.h
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 26 Sep 2016 05:38:16 +0000 (08:38 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 26 Sep 2016 05:38:16 +0000 (08:38 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
include/linux/compat-2.6.h
include/linux/compat-4.5.h [new file with mode: 0644]

index 62b4e31..8c7273b 100644 (file)
@@ -75,5 +75,6 @@ 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-4.5.h>
 
 #endif /* LINUX_26_COMPAT_H */
diff --git a/include/linux/compat-4.5.h b/include/linux/compat-4.5.h
new file mode 100644 (file)
index 0000000..6621346
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef LINUX_4_5_COMPAT_H
+#define LINUX_4_5_COMPAT_H
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0))
+
+#include <linux/netdevice.h>
+
+#ifndef NETIF_F_CSUM_MASK
+#define NETIF_F_CSUM_MASK NETIF_F_ALL_CSUM
+#endif
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0)) */
+
+#endif /* LINUX_4_5_COMPAT_H */