> -----Original Message----- > From: Yigit, Ferruh > Sent: Thursday, September 15, 2016 3:13 AM > To: De Lara Guarch, Pablo; dev at dpdk.org > Subject: Re: [PATCH] kni: support RHEL 7.3 > > 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 <pablo.de.lara.guarch at intel.com> > > --- > > 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) ) >
Good point. Will send a v2 with that :) Thanks, Pablo > Thanks, > ferruh