From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] Fix KNI compilation under Wind River Linux 6.0 recent RCPLs. Date: Wed, 30 Mar 2016 14:50:42 -0700 Message-ID: <20160330145042.1708ecee@xeon-e3> References: <1459361615-6021-1-git-send-email-lee.roberts@hpe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Lee Roberts Return-path: Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id 07855293C for ; Wed, 30 Mar 2016 23:50:27 +0200 (CEST) Received: by mail-pf0-f178.google.com with SMTP id x3so52551809pfb.1 for ; Wed, 30 Mar 2016 14:50:26 -0700 (PDT) In-Reply-To: <1459361615-6021-1-git-send-email-lee.roberts@hpe.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 Wed, 30 Mar 2016 12:13:35 -0600 Lee Roberts wrote: > skb_set_hash() has been backported to recent Wind River Linux 6.0 RCPLs. > As a result, the corresponding stanza in kcompat.h must be removed. > Similar patches have already been applied for RHEL, SLES and Ubuntu. > > Wind River Linux does not provide convenient macros for kernel version > identification. Add macros to Makefile to identify the Wind River Linux > version. > > Signed-off-by: Lee Roberts > --- > lib/librte_eal/linuxapp/kni/Makefile | 8 ++++++++ > lib/librte_eal/linuxapp/kni/ethtool/igb/kcompat.h | 13 +++++++++++++ > 2 files changed, 21 insertions(+) > > diff --git a/lib/librte_eal/linuxapp/kni/Makefile b/lib/librte_eal/linuxapp/kni/Makefile > index ac99d3f..6310615 100644 > --- a/lib/librte_eal/linuxapp/kni/Makefile > +++ b/lib/librte_eal/linuxapp/kni/Makefile > @@ -51,6 +51,14 @@ UBUNTU_KERNEL_CODE := $(shell echo `grep UTS_RELEASE $(RTE_KERNELDIR)/include/ge > MODULE_CFLAGS += -D"UBUNTU_KERNEL_CODE=UBUNTU_KERNEL_VERSION($(UBUNTU_KERNEL_CODE))" > endif > > +ifeq ($(shell lsb_release -si 2>/dev/null),wrlinux) > +WRLINUX_MAJOR := $(shell lsb_release -sr | cut -d. -f1) > +WRLINUX_MINOR := $(shell lsb_release -sr | cut -d. -f2) > +WRLINUX_RCPL := $(shell lsb_release -sr | cut -d. -f4) > +MODULE_CFLAGS += -D"WRLINUX_RELEASE_CODE=WRLINUX_RELEASE_VERSION($(WRLINUX_MAJOR),$(WRLINUX_MINOR))" > +MODULE_CFLAGS += -D"WRLINUX_RCPL=$(WRLINUX_RCPL)" > +endif > + Do we want to require DPDK to work in the face of every weird vendor kernel backport. This is a road to nowhere... One more reason to get kernel drivers upstream.