From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 3F8F18D99 for ; Wed, 30 Sep 2015 15:18:24 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 30 Sep 2015 06:18:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,612,1437462000"; d="scan'208";a="655080637" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 30 Sep 2015 06:18:21 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 30 Sep 2015 06:18:21 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 30 Sep 2015 06:18:20 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.179]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.246]) with mapi id 14.03.0248.002; Wed, 30 Sep 2015 21:18:19 +0800 From: "Chen, Jing D" To: "Ananyev, Konstantin" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 06/14] fm10k: add Vector RX function Thread-Index: AQHQ+rddM6YoTKZ6JkCPtvT67EDnLp5S9fwAgAIEVNA= Date: Wed, 30 Sep 2015 13:18:18 +0000 Message-ID: <4341B239C0EFF9468EE453F9E9F4604D02ACC61F@shsmsx102.ccr.corp.intel.com> References: <1443531824-22767-1-git-send-email-jing.d.chen@intel.com> <1443531824-22767-7-git-send-email-jing.d.chen@intel.com> <2601191342CEEE43887BDE71AB97725836AA15D5@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB97725836AA15D5@irsmsx105.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 06/14] fm10k: add Vector RX function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2015 13:18:24 -0000 > -----Original Message----- > From: Ananyev, Konstantin > Sent: Tuesday, September 29, 2015 9:14 PM > To: Chen, Jing D; dev@dpdk.org > Subject: RE: [dpdk-dev] [PATCH 06/14] fm10k: add Vector RX function >=20 >=20 > > + /* A. load 4 packet in one loop > > + * [A*. mask out 4 unused dirty field in desc] > > + * B. copy 4 mbuf point from swring to rx_pkts > > + * C. calc the number of DD bits among the 4 packets > > + * [C*. extract the end-of-packet bit, if requested] > > + * D. fill info. from desc to mbuf > > + */ > > + for (pos =3D 0, nb_pkts_recd =3D 0; pos < nb_pkts; > > + pos +=3D RTE_FM10K_DESCS_PER_LOOP, > > + rxdp +=3D RTE_FM10K_DESCS_PER_LOOP) { > > + __m128i descs0[RTE_FM10K_DESCS_PER_LOOP]; > > + __m128i pkt_mb1, pkt_mb2, pkt_mb3, pkt_mb4; > > + __m128i zero, staterr, sterr_tmp1, sterr_tmp2; > > + __m128i mbp1, mbp2; /* two mbuf pointer in one XMM reg. > */ > > + > > + if (split_packet) { > > + rte_prefetch0(&rx_pkts[pos]->cacheline1); > > + rte_prefetch0(&rx_pkts[pos + 1]->cacheline1); > > + rte_prefetch0(&rx_pkts[pos + 2]->cacheline1); > > + rte_prefetch0(&rx_pkts[pos + 3]->cacheline1); > > + } >=20 >=20 > Same thing as with i40e vPMD: > You are pretching junk addreses here. > Check out Zoltan's patch: > http://dpdk.org/dev/patchwork/patch/7190/ > and related conversation: > http://dpdk.org/ml/archives/dev/2015-September/023715.html > I think there is the same issue here. > Konstantin >=20 Thanks for the comments, Konstantin! I'll check the material you referred = to.