From mboxrd@z Thu Jan 1 00:00:00 1970 From: Drocula Subject: [PATCH] kni: fix build on RHEL 7.5 Date: Mon, 6 Aug 2018 12:06:07 +0000 Message-ID: <1533557167-7390-1-git-send-email-quzeyao@gmail.com> Cc: dev@dpdk.org, Drocula To: Ferruh Yigit Return-path: Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 9B1DA1B464 for ; Mon, 6 Aug 2018 14:06:42 +0200 (CEST) Received: by mail-pf1-f193.google.com with SMTP id b11-v6so6770218pfo.3 for ; Mon, 06 Aug 2018 05:06:42 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Drocula --- 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