From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jianbo Liu Subject: Re: [PATCH v2] examples/l3fwd: fix NEON instructions Date: Mon, 30 Oct 2017 15:36:15 +0800 Message-ID: <20171030073614.GA27106@arm.com> References: <20171030073126.1662-1-gprathyusha@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: tomasz.kantecki@intel.com, guduriprathyusha@gmail.com, dev@dpdk.org To: Guduri Prathyusha Return-path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0082.outbound.protection.outlook.com [104.47.2.82]) by dpdk.org (Postfix) with ESMTP id 968EA1B2D2 for ; Mon, 30 Oct 2017 08:37:30 +0100 (CET) Content-Disposition: inline In-Reply-To: <20171030073126.1662-1-gprathyusha@caviumnetworks.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The 10/30/2017 13:01, Guduri Prathyusha wrote: > 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[]=3D{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") > > Signed-off-by: Guduri Prathyusha Acked-by: Jianbo Liu > --- > > v2: > > * fix as suggested by Jianbo Liu > --- > examples/l3fwd/l3fwd_neon.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/examples/l3fwd/l3fwd_neon.h b/examples/l3fwd/l3fwd_neon.h > index 42d50d3c2..4bc161394 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 r= te_mbuf **pkts_burst, > * dp1: > * > */ > - dp1 =3D vextq_u16(dp1, dp1, FWDSTEP - 1); > + dp1 =3D vextq_u16(dp2, dp1, FWDSTEP - 1); > } > > /* > -- > 2.14.1 > -- IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.