git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9894024
)
kni: fix build on RHEL 7.5
author
Lee Roberts
<lee.roberts@hpe.com>
Thu, 1 Mar 2018 23:20:35 +0000
(16:20 -0700)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/kernel/linux/kni/compat.h
b/kernel/linux/kni/compat.h
index
3f8c0bc
..
6a6968d
100644
(file)
--- 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