aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/dpdk-dev-ppc-enable-3-7-examples-l3fwd-add-AltiVec-for-ppc64.patch
diff options
context:
space:
mode:
authorGowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>2016-09-21 17:02:03 +0530
committerGowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>2016-09-26 13:53:39 +0530
commitce869c40f7d76ac73120bb98763aef4edae0f0bd (patch)
tree37909295c3c0e6c85d7e5fd23d840b1f3ce1d51c /debian/patches/dpdk-dev-ppc-enable-3-7-examples-l3fwd-add-AltiVec-for-ppc64.patch
parent55c3008a78a5913dff6dc25c69abdd8f345c5b5b (diff)
dpdk-dev: enable lpm, acl, sched, table, port and pipeline libs in ppc64le
This patchset enables lpm, acl, sched, table, port and pileline libs in ppc64le and also address few patches in related examples (ip_pipeline and l3fwd). Upstream patches pulled into deb_dpdk. Change-Id: I73bf0a2a20da227476601b748448f16e2b471eaf Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
Diffstat (limited to 'debian/patches/dpdk-dev-ppc-enable-3-7-examples-l3fwd-add-AltiVec-for-ppc64.patch')
-rw-r--r--debian/patches/dpdk-dev-ppc-enable-3-7-examples-l3fwd-add-AltiVec-for-ppc64.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/dpdk-dev-ppc-enable-3-7-examples-l3fwd-add-AltiVec-for-ppc64.patch b/debian/patches/dpdk-dev-ppc-enable-3-7-examples-l3fwd-add-AltiVec-for-ppc64.patch
new file mode 100644
index 00000000..a0eb79ce
--- /dev/null
+++ b/debian/patches/dpdk-dev-ppc-enable-3-7-examples-l3fwd-add-AltiVec-for-ppc64.patch
@@ -0,0 +1,41 @@
+From: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
+Date: Thu, 8 Sep 2016 22:18:05 +0530
+Subject: [PATCH 3/7] examples/l3fwd: add AltiVec for ppc64
+
+This patch adds ppc64le port for em_mask_key function.
+
+Signed-off-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
+Acked-by: Chao Zhu <chaozhu@linux.vnet.ibm.com>
+
+Origin: Upstream, commit:f2379ca1f679c1ded6ed2239fc3b7f58844d903b
+Author: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
+Last-Update: 2016-09-21
+---
+ examples/l3fwd/l3fwd_em.c | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3fwd/l3fwd_em.c
+index def5a02..6053a62 100644
+--- a/examples/l3fwd/l3fwd_em.c
++++ b/examples/l3fwd/l3fwd_em.c
+@@ -259,8 +259,16 @@ em_mask_key(void *key, xmm_t mask)
+
+ return vandq_s32(data, mask);
+ }
++#elif defined(RTE_MACHINE_CPUFLAG_ALTIVEC)
++static inline xmm_t
++em_mask_key(void *key, xmm_t mask)
++{
++ xmm_t data = vec_ld(0, (xmm_t *)(key));
++
++ return vec_and(data, mask);
++}
+ #else
+-#error No vector engine (SSE, NEON) available, check your toolchain
++#error No vector engine (SSE, NEON, ALTIVEC) available, check your toolchain
+ #endif
+
+ static inline uint8_t
+--
+1.9.1
+