kni: fix build on RHEL 7.5
authorLee Roberts <lee.roberts@hpe.com>
Thu, 1 Mar 2018 23:20:35 +0000 (16:20 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 27 Mar 2018 22:15:08 +0000 (00:15 +0200)
Signed-off-by: Lee Roberts <lee.roberts@hpe.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
kernel/linux/kni/compat.h

index 3f8c0bc..6a6968d 100644 (file)
 #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