examples/l3fwd: fix NEON instructions
authorGuduri Prathyusha <gprathyusha@caviumnetworks.com>
Mon, 30 Oct 2017 07:31:26 +0000 (13:01 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Nov 2017 08:50:57 +0000 (08:50 +0000)
commit3a4475e51d13ec3328b291061c38b7c5643a86ee
tree27fad38ce4b933d9e46eff20013f74929a7c621f
parent9f8f40f7953599efbd7193ad34b220637847b5a4
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: <a,b,c,d> and
dp2 should contain: <b,c,d,e> in the first iteration. dp1 should
be <e,f,g,h> and dp2 should be <f,g,h,i> in the next iteration.

Whereas the existing code incorrectly calculates dp1 as <d,e,f,g> 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 <gprathyusha@caviumnetworks.com>
Acked-by: Jianbo Liu <jianbo.liu@arm.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
examples/l3fwd/l3fwd_neon.h