Hi Luca, Yuanhan,
On 03/02/2018 12:20 AM, Lee Roberts wrote:
Fix kni compilation under RHEL 7.5.
Signed-off-by: Lee Roberts <lee.robe...@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
Any chance we pick these patches in stable branches so that
we can build them with RHEL 7.5 without disabling KNI?
I think it should apply cleanly on all of them, but I can send the
backport patches for each of them if necessary.
Thanks,
Maxime