From: Guduri Prathyusha Date: Mon, 30 Oct 2017 07:31:26 +0000 (+0530) Subject: examples/l3fwd: fix NEON instructions X-Git-Tag: spdx-start~932 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3a4475e51d13ec3328b291061c38b7c5643a86ee;p=dpdk.git examples/l3fwd: fix NEON instructions To group consecutive packets with same destination port in bursts of 4 neon intrinsic data types dp1 and dp2 are calculated such that if dst_port[]={a,b,c,d,e,f,g,h,i...} dp1 should contain: and dp2 should contain: in the first iteration. dp1 should be and dp2 should be in the next iteration. Whereas the existing code incorrectly calculates dp1 as from second iteration. This patch fixes the incorrect ARM NEON instructions on dp1. Fixes: 569b290cdb36 ("examples/l3fwd: add NEON implementation") Cc: stable@dpdk.org Signed-off-by: Guduri Prathyusha Acked-by: Jianbo Liu Acked-by: Jerin Jacob --- diff --git a/examples/l3fwd/l3fwd_neon.h b/examples/l3fwd/l3fwd_neon.h index 42d50d3c26..4bc1613943 100644 --- a/examples/l3fwd/l3fwd_neon.h +++ b/examples/l3fwd/l3fwd_neon.h @@ -192,7 +192,7 @@ send_packets_multi(struct lcore_conf *qconf, struct rte_mbuf **pkts_burst, * dp1: * */ - dp1 = vextq_u16(dp1, dp1, FWDSTEP - 1); + dp1 = vextq_u16(dp2, dp1, FWDSTEP - 1); } /*