From patchwork Thu Mar 1 23:20:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Roberts X-Patchwork-Id: 35566 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F2C424CBD; Fri, 2 Mar 2018 00:21:11 +0100 (CET) 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix kni compilation under RHEL 7.5. Signed-off-by: Lee Roberts Acked-by: Ferruh Yigit --- 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