From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by dpdk.org (Postfix) with ESMTP id 2DC5D4CA1 for ; Fri, 2 Mar 2018 00:21:10 +0100 (CET) Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id 3760724A; Thu, 1 Mar 2018 23:20:45 +0000 (UTC) Received: from hpe.com (unknown [16.79.30.39]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id EAC7B400; Thu, 1 Mar 2018 23:20:44 +0000 (UTC) From: Lee Roberts To: ferruh.yigit@intel.com Cc: dev@dpdk.org, Lee Roberts Date: Thu, 1 Mar 2018 16:20:35 -0700 Message-Id: <1519946435-3574-1-git-send-email-lee.roberts@hpe.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] kni: fix compilation under RHEL 7.5 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2018 23:21:10 -0000 Fix kni compilation under RHEL 7.5. Signed-off-by: Lee Roberts --- lib/librte_eal/linuxapp/kni/compat.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_eal/linuxapp/kni/compat.h b/lib/librte_eal/linuxapp/kni/compat.h index 3f8c0bc..6a6968d 100644 --- a/lib/librte_eal/linuxapp/kni/compat.h +++ b/lib/librte_eal/linuxapp/kni/compat.h @@ -101,6 +101,11 @@ #undef NET_NAME_UNKNOWN #endif +#if (defined(RHEL_RELEASE_CODE) && \ + (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5))) +#define ndo_change_mtu ndo_change_mtu_rh74 +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) #define HAVE_SIGNAL_FUNCTIONS_OWN_HEADER #endif -- 1.9.1