summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorLee Roberts <lee.roberts@hpe.com>2018-03-01 16:20:35 -0700
committerThomas Monjalon <thomas@monjalon.net>2018-03-28 00:15:08 +0200
commit37d477b6863e5c06e20be434b559d3a03d89f46a (patch)
tree34e8f85c3e6b3bf4a4fdc29ac80db6dddc4acd06 /kernel
parent98940244ad7f433e79c8070f26cc76e77704b363 (diff)
downloaddpdk-37d477b6863e5c06e20be434b559d3a03d89f46a.zip
dpdk-37d477b6863e5c06e20be434b559d3a03d89f46a.tar.gz
dpdk-37d477b6863e5c06e20be434b559d3a03d89f46a.tar.xz
kni: fix build on RHEL 7.5
Signed-off-by: Lee Roberts <lee.roberts@hpe.com> Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/linux/kni/compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h
index 3f8c0bc..6a6968d 100644
--- a/kernel/linux/kni/compat.h
+++ b/kernel/linux/kni/compat.h
@@ -101,6 +101,11 @@
#undef NET_NAME_UNKNOWN
#endif
+#if (defined(RHEL_RELEASE_CODE) && \
+ (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5)))
+#define ndo_change_mtu ndo_change_mtu_rh74
+#endif
+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
#define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER
#endif