From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: 1.7.0 release failed to compile on linux Date: Sat, 16 Aug 2014 00:41:38 +0200 Message-ID: <3556499.hMzHJM9L0j@xps13> References: <53ED2DBF.4070003@gmail.com> <4B613BEE-2D07-417D-ACA3-6C228FADB14E@windriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: "Wiles, Roger Keith" Return-path: In-Reply-To: <4B613BEE-2D07-417D-ACA3-6C228FADB14E-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Keith, 2014-08-14 21:55, Wiles, Roger Keith: > /* #### Changed the next line to use (3,13,8) instead of (3,14,0) KeithW */ > #if ( LINUX_VERSION_CODE < KERNEL_VERSION(3,13,8) ) > #if (!(RHEL_RELEASE_CODE && RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,0))) > #ifdef NETIF_F_RXHASH > #define PKT_HASH_TYPE_L3 0 > static inline void > skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type) > { > skb->rxhash = hash; > } > #endif /* NETIF_F_RXHASH */ > #endif /* < RHEL7 */ > #endif /* < 3.14.0 */ I really don't understand why changing condition from < 3.14.0 to < 3.13.8 would be better? This function appeared in 3.14.0. Maybe that Ubuntu backported it for their 12.04 version, so it must be handled with a specific Ubuntu check as it was already done for Ubuntu 14.04: #if (!(UBUNTU_RELEASE_CODE == UBUNTU_RELEASE_VERSION(14,4) && UBUNTU_KERNEL_CODE >= UBUNTU_KERNEL_VERSION(3,13,0,30,54))) Please help to improve what is done in master branch by providing patches. Note: please do not top post and try to use cite mark '>' Thanks -- Thomas