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:
710cab6
)
kni: fix build on RHEL 7.4
author
Lee Roberts
<lee.roberts@hpe.com>
Wed, 31 May 2017 15:40:15 +0000
(09:40 -0600)
committer
Thomas Monjalon
<thomas@monjalon.net>
Mon, 5 Jun 2017 13:45:25 +0000
(15:45 +0200)
Linux:
9b36627acecd
("net: remove dev->trans_start")
Signed-off-by: Lee Roberts <lee.roberts@hpe.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/compat.h
patch
|
blob
|
history
diff --git
a/lib/librte_eal/linuxapp/kni/compat.h
b/lib/librte_eal/linuxapp/kni/compat.h
index
d96275a
..
6a1587b
100644
(file)
--- a/
lib/librte_eal/linuxapp/kni/compat.h
+++ b/
lib/librte_eal/linuxapp/kni/compat.h
@@
-53,7
+53,9
@@
#define HAVE_SK_ALLOC_KERN_PARAM
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0) || \
+ (defined(RHEL_RELEASE_CODE) && \
+ RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 4))
#define HAVE_TRANS_START_HELPER
#endif