[dpdk-dev] [PATCH] kni: fix compilation under RHEL 7.5
Lee Roberts
lee.roberts at hpe.com
Fri Mar 2 00:20:35 CET 2018
Fix kni compilation under RHEL 7.5.
Signed-off-by: Lee Roberts <lee.roberts at hpe.com>
---
lib/librte_eal/linuxapp/kni/compat.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/lib/librte_eal/linuxapp/kni/compat.h b/lib/librte_eal/linuxapp/kni/compat.h
index 3f8c0bc..6a6968d 100644
--- a/lib/librte_eal/linuxapp/kni/compat.h
+++ b/lib/librte_eal/linuxapp/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
--
1.9.1
More information about the dev
mailing list