From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] kni: support RHEL 7.3 Date: Thu, 15 Sep 2016 11:12:51 +0100 Message-ID: References: <1473877521-2234-1-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit To: Pablo de Lara , dev@dpdk.org Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 0EC8429D1 for ; Thu, 15 Sep 2016 12:12:53 +0200 (CEST) In-Reply-To: <1473877521-2234-1-git-send-email-pablo.de.lara.guarch@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/14/2016 7:25 PM, Pablo de Lara wrote: > Add support for RHEL 7.3, which uses kernel 3.10, > but backported features from newer kernels. > > Signed-off-by: Pablo de Lara > --- > lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h > index bdd0806..1e20a9e 100644 > --- a/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h > +++ b/lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h > @@ -3891,7 +3891,7 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type) > #if (( LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) ) \ > || ( RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,2) )) > #define HAVE_NDO_DFLT_BRIDGE_ADD_MASK > -#if (!( RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,2) )) > +#if (!( RHEL_RELEASE_CODE == RHEL_RELEASE_VERSION(7,2) )) What about following to simplify the logic: +#if ( RHEL_RELEASE_CODE != RHEL_RELEASE_VERSION(7,2) ) Thanks, ferruh