From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 792111B52B for ; Thu, 7 Feb 2019 14:28:19 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C0B77CDDF2; Thu, 7 Feb 2019 13:28:18 +0000 (UTC) Received: from ktraynor.remote.csb (unknown [10.33.36.135]) by smtp.corp.redhat.com (Postfix) with ESMTP id BC00D600D7; Thu, 7 Feb 2019 13:28:17 +0000 (UTC) From: Kevin Traynor To: David Zeng Cc: Ferruh Yigit , dpdk stable Date: Thu, 7 Feb 2019 13:25:52 +0000 Message-Id: <20190207132614.20538-46-ktraynor@redhat.com> In-Reply-To: <20190207132614.20538-1-ktraynor@redhat.com> References: <20190207132614.20538-1-ktraynor@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 07 Feb 2019 13:28:18 +0000 (UTC) Subject: [dpdk-stable] patch 'kni: fix build on RHEL8 for arm and Power9' has been queued to LTS release 18.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2019 13:28:19 -0000 Hi, FYI, your patch has been queued to LTS release 18.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/14/19. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Kevin Traynor --- >>From a14239650e288b64b367221c27478e54a87edc0d Mon Sep 17 00:00:00 2001 From: David Zeng Date: Sat, 22 Dec 2018 00:27:33 +0800 Subject: [PATCH] kni: fix build on RHEL8 for arm and Power9 [ upstream commit 3d5501d568aacbcf71832691278f5656d3a9b649 ] Signed-off-by: David Zeng Acked-by: Ferruh Yigit --- kernel/linux/kni/compat.h | 8 +++++++- kernel/linux/kni/ethtool/igb/kcompat.h | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h index bc81d0c8d..3c575c70a 100644 --- a/kernel/linux/kni/compat.h +++ b/kernel/linux/kni/compat.h @@ -103,7 +103,13 @@ #endif +/* + * RHEL has two different version with different kernel version: + * 3.10 is for AMD, Intel, IBM POWER7 and POWER8; + * 4.14 is for ARM and IBM POWER9 + */ #if (defined(RHEL_RELEASE_CODE) && \ (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5)) && \ - (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8, 0))) + (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8, 0)) && \ + (LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0))) #define ndo_change_mtu ndo_change_mtu_rh74 #endif diff --git a/kernel/linux/kni/ethtool/igb/kcompat.h b/kernel/linux/kni/ethtool/igb/kcompat.h index 2681be684..430aabafe 100644 --- a/kernel/linux/kni/ethtool/igb/kcompat.h +++ b/kernel/linux/kni/ethtool/igb/kcompat.h @@ -3932,5 +3932,6 @@ skb_set_hash(struct sk_buff *skb, __u32 hash, __always_unused int type) #if (defined(RHEL_RELEASE_CODE) && \ (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7, 5)) && \ - (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8, 0))) + (RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8, 0)) && \ + (LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0))) #define ndo_change_mtu ndo_change_mtu_rh74 #endif -- 2.19.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2019-02-07 13:19:56.620173180 +0000 +++ 0046-kni-fix-build-on-RHEL8-for-arm-and-Power9.patch 2019-02-07 13:19:55.000000000 +0000 @@ -1,8 +1,10 @@ -From 3d5501d568aacbcf71832691278f5656d3a9b649 Mon Sep 17 00:00:00 2001 +From a14239650e288b64b367221c27478e54a87edc0d Mon Sep 17 00:00:00 2001 From: David Zeng Date: Sat, 22 Dec 2018 00:27:33 +0800 Subject: [PATCH] kni: fix build on RHEL8 for arm and Power9 +[ upstream commit 3d5501d568aacbcf71832691278f5656d3a9b649 ] + Signed-off-by: David Zeng Acked-by: Ferruh Yigit ---