From mboxrd@z Thu Jan 1 00:00:00 1970 From: Drocula Subject: [PATCH v2] kni: fix build on RHEL 7.5 Date: Thu, 9 Aug 2018 12:09:06 +0000 Message-ID: <1533816546-1626-1-git-send-email-quzeyao@gmail.com> References: <1533557167-7390-1-git-send-email-quzeyao@gmail.com> Cc: dev@dpdk.org, Drocula To: ferruh.yigit@intel.com Return-path: Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 8CB73235 for ; Thu, 9 Aug 2018 14:09:17 +0200 (CEST) Received: by mail-pg1-f194.google.com with SMTP id a14-v6so2652893pgv.10 for ; Thu, 09 Aug 2018 05:09:17 -0700 (PDT) In-Reply-To: <1533557167-7390-1-git-send-email-quzeyao@gmail.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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