From: Drocula <quzeyao@gmail.com>
To: ferruh.yigit@intel.com
Cc: dev@dpdk.org, Drocula <quzeyao@gmail.com>
Subject: [dpdk-dev] [PATCH v2] kni: fix build on RHEL 7.5
Date: Thu, 9 Aug 2018 12:09:06 +0000 [thread overview]
Message-ID: <1533816546-1626-1-git-send-email-quzeyao@gmail.com> (raw)
In-Reply-To: <1533557167-7390-1-git-send-email-quzeyao@gmail.com>
This patch fixes compilation errors on Centos 7.5 when
CONFIG_RTE_KNI_KMOD_ETHTOOL is set to 'y'.
On RHEL75 ndo_change_mtu has changed to ndo_change_mtu_rh74.
See commit 37d477b6863e5c06 ("kni: fix build on RHEL 7.5")
Signed-off-by: Drocula Lambda <quzeyao@gmail.com>
---
kernel/linux/kni/ethtool/igb/kcompat.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/kernel/linux/kni/ethtool/igb/kcompat.h b/kernel/linux/kni/ethtool/igb/kcompat.h
index 40a8d99..ae1b530 100644
--- a/kernel/linux/kni/ethtool/igb/kcompat.h
+++ b/kernel/linux/kni/ethtool/igb/kcompat.h
@@ -3929,6 +3929,11 @@ static inline struct sk_buff *__kc__vlan_hwaccel_put_tag(struct sk_buff *skb,
#endif
#endif
+#if (defined(RHEL_RELEASE_CODE) && \
+ (RHEL_RELEASE_VERSION(7, 5) <= RHEL_RELEASE_CODE))
+#define ndo_change_mtu ndo_change_mtu_rh74
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)
#define HAVE_PCI_ENABLE_MSIX
#endif
--
1.8.3.1
next prev parent reply other threads:[~2018-08-09 12:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-06 12:06 [dpdk-dev] [PATCH] " Drocula
2018-08-09 9:59 ` Ferruh Yigit
2018-08-09 10:25 ` Drocula
2018-08-09 10:33 ` Drocula
2018-08-09 12:09 ` Drocula [this message]
2018-08-09 12:15 ` [dpdk-dev] [PATCH v2] " Ferruh Yigit
2018-08-09 14:10 ` Thomas Monjalon
2018-08-09 14:03 ` Thomas Monjalon
2018-08-09 17:10 ` Stephen Hemminger
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=1533816546-1626-1-git-send-email-quzeyao@gmail.com \
--to=quzeyao@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).