[dpdk-stable] patch 'eal/arm64: fix instrinsic for GCC < 4.9' has been queued to LTS release 17.11.5

Yongseok Koh yskoh at mellanox.com
Fri Nov 30 00:09:56 CET 2018


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 at 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 at dpdk.org

Signed-off-by: Yongseok Koh <yskoh at mellanox.com>
Acked-by: Jerin Jacob <jerin.jacob at 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 at 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)));


More information about the stable mailing list