From: Lee Roberts <lee.roberts@hpe.com>
To: ferruh.yigit@intel.com
Cc: dev@dpdk.org, Lee Roberts <lee.roberts@hpe.com>
Subject: [PATCH] kni: fix compilation under RHEL 7.4.
Date: Wed, 31 May 2017 09:40:15 -0600 [thread overview]
Message-ID: <1496245215-3859-1-git-send-email-lee.roberts@hpe.com> (raw)
Fix kni compilation under RHEL 7.4.
Signed-off-by: Lee Roberts <lee.roberts@hpe.com>
---
lib/librte_eal/linuxapp/kni/compat.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/librte_eal/linuxapp/kni/compat.h b/lib/librte_eal/linuxapp/kni/compat.h
index d96275a..6a1587b 100644
--- 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
--
1.9.1
next reply other threads:[~2017-05-31 15:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-31 15:40 Lee Roberts [this message]
2017-05-31 16:43 ` [PATCH] kni: fix compilation under RHEL 7.4 Ferruh Yigit
2017-06-05 13:46 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1496245215-3859-1-git-send-email-lee.roberts@hpe.com \
--to=lee.roberts@hpe.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.