From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <yskoh@mellanox.com>
Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])
 by dpdk.org (Postfix) with ESMTP id 5DEA81B517
 for <stable@dpdk.org>; Fri, 30 Nov 2018 00:12:41 +0100 (CET)
Received: from Internal Mail-Server by MTLPINE1 (envelope-from
 yskoh@mellanox.com)
 with ESMTPS (AES256-SHA encrypted); 30 Nov 2018 01:18:29 +0200
Received: from scfae-sc-2.mti.labs.mlnx (scfae-sc-2.mti.labs.mlnx
 [10.101.0.96])
 by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id wATNCW72032075;
 Fri, 30 Nov 2018 01:12:34 +0200
From: Yongseok Koh <yskoh@mellanox.com>
To: Yongseok Koh <yskoh@mellanox.com>
Cc: Jerin Jacob <jerin.jacob@caviumnetworks.com>, dpdk stable <stable@dpdk.org>
Date: Thu, 29 Nov 2018 15:09:56 -0800
Message-Id: <20181129231202.30436-2-yskoh@mellanox.com>
X-Mailer: git-send-email 2.11.0
In-Reply-To: <20181129231202.30436-1-yskoh@mellanox.com>
References: <20181129231202.30436-1-yskoh@mellanox.com>
Subject: [dpdk-stable] patch 'eal/arm64: fix instrinsic for GCC < 4.9' has
	been queued to LTS release 17.11.5
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 29 Nov 2018 23:12:41 -0000

Hi,

FYI, your patch has been queued to LTS release 17.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/01/18. 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. If the code is different (ie: not only metadata diffs), due for example to
a change in context or macro names, please double check it.

Thanks.

Yongseok

---
>>From abb22a1404e9033e006af5e87bcbaec40fde7d9e Mon Sep 17 00:00:00 2001
From: Yongseok Koh <yskoh@mellanox.com>
Date: Tue, 30 Jan 2018 16:07:08 -0800
Subject: [PATCH] eal/arm64: fix instrinsic for GCC < 4.9

[ upstream commit dffa1f304939d57431b262ae9fc1f636b346dda0 ]

vceqzq_u32() is being used by mlx5 PMD but added since gcc 4.9.

Fixes: 570acdb1da8a ("net/mlx5: add vectorized Rx/Tx burst for ARM")
Cc: stable@dpdk.org

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
 lib/librte_eal/common/include/arch/arm/rte_vect.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/librte_eal/common/include/arch/arm/rte_vect.h b/lib/librte_eal/common/include/arch/arm/rte_vect.h
index aa887a972..e5c1d358b 100644
--- a/lib/librte_eal/common/include/arch/arm/rte_vect.h
+++ b/lib/librte_eal/common/include/arch/arm/rte_vect.h
@@ -106,6 +106,12 @@ vcopyq_laneq_u32(uint32x4_t a, const int lane_a,
 typedef uint64_t poly64_t;
 typedef uint64x2_t poly64x2_t;
 typedef uint8_t poly128_t __attribute__((vector_size(16), aligned(16)));
+
+static inline uint32x4_t
+vceqzq_u32(uint32x4_t a)
+{
+	return (a == 0);
+}
 #endif
 
 /* NEON intrinsic vreinterpretq_u64_p128() is supported since GCC version 7 */
-- 
2.11.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2018-11-29 15:01:45.416410592 -0800
+++ 0002-eal-arm64-fix-instrinsic-for-GCC-4.9.patch	2018-11-29 15:01:44.959963000 -0800
@@ -1,8 +1,10 @@
-From dffa1f304939d57431b262ae9fc1f636b346dda0 Mon Sep 17 00:00:00 2001
+From abb22a1404e9033e006af5e87bcbaec40fde7d9e Mon Sep 17 00:00:00 2001
 From: Yongseok Koh <yskoh@mellanox.com>
 Date: Tue, 30 Jan 2018 16:07:08 -0800
 Subject: [PATCH] eal/arm64: fix instrinsic for GCC < 4.9
 
+[ upstream commit dffa1f304939d57431b262ae9fc1f636b346dda0 ]
+
 vceqzq_u32() is being used by mlx5 PMD but added since gcc 4.9.
 
 Fixes: 570acdb1da8a ("net/mlx5: add vectorized Rx/Tx burst for ARM")
@@ -15,10 +17,10 @@
  1 file changed, 6 insertions(+)
 
 diff --git a/lib/librte_eal/common/include/arch/arm/rte_vect.h b/lib/librte_eal/common/include/arch/arm/rte_vect.h
-index 5cc34190f..2a18a6854 100644
+index aa887a972..e5c1d358b 100644
 --- a/lib/librte_eal/common/include/arch/arm/rte_vect.h
 +++ b/lib/librte_eal/common/include/arch/arm/rte_vect.h
-@@ -78,6 +78,12 @@ vcopyq_laneq_u32(uint32x4_t a, const int lane_a,
+@@ -106,6 +106,12 @@ vcopyq_laneq_u32(uint32x4_t a, const int lane_a,
  typedef uint64_t poly64_t;
  typedef uint64x2_t poly64x2_t;
  typedef uint8_t poly128_t __attribute__((vector_size(16), aligned(16)));