From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id C36BC1AEF6 for ; Thu, 19 Apr 2018 15:10:02 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 094648182D16; Thu, 19 Apr 2018 13:10:02 +0000 (UTC) Received: from [10.36.112.62] (ovpn-112-62.ams2.redhat.com [10.36.112.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9F2052166BC7; Thu, 19 Apr 2018 13:10:00 +0000 (UTC) To: Lee Roberts , ferruh.yigit@intel.com, Thomas Monjalon , Luca Boccassi , Yuanhan Liu Cc: dev@dpdk.org References: <1519946435-3574-1-git-send-email-lee.roberts@hpe.com> From: Maxime Coquelin Message-ID: <1b24f058-2a55-73a9-14ab-5002637a7c92@redhat.com> Date: Thu, 19 Apr 2018 15:09:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1519946435-3574-1-git-send-email-lee.roberts@hpe.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 19 Apr 2018 13:10:02 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Thu, 19 Apr 2018 13:10:02 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [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, 19 Apr 2018 13:10:03 -0000 Hi Luca, Yuanhan, On 03/02/2018 12:20 AM, Lee Roberts wrote: > 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 > Any chance we pick these patches in stable branches so that we can build them with RHEL 7.5 without disabling KNI? I think it should apply cleanly on all of them, but I can send the backport patches for each of them if necessary. Thanks, Maxime