From: Lee Roberts Date: Thu, 1 Mar 2018 23:20:35 +0000 (-0700) Subject: kni: fix build on RHEL 7.5 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=37d477b6863e5c06e20be434b559d3a03d89f46a;p=dpdk.git kni: fix build on RHEL 7.5 Signed-off-by: Lee Roberts Acked-by: Ferruh Yigit --- 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