From 37d477b6863e5c06e20be434b559d3a03d89f46a Mon Sep 17 00:00:00 2001 From: Lee Roberts Date: Thu, 1 Mar 2018 16:20:35 -0700 Subject: [PATCH] kni: fix build on RHEL 7.5 Signed-off-by: Lee Roberts Acked-by: Ferruh Yigit --- kernel/linux/kni/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h index 3f8c0bc871..6a6968d93b 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 -- 2.20.1