From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B67A18E91 for ; Fri, 30 Oct 2015 14:46:19 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 30 Oct 2015 06:46:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,218,1444719600"; d="scan'208";a="807491399" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 30 Oct 2015 06:46:08 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 30 Oct 2015 06:46:08 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 30 Oct 2015 06:46:08 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.253]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.204]) with mapi id 14.03.0248.002; Fri, 30 Oct 2015 21:46:06 +0800 From: "Liang, Cunming" To: "Tao, Zhe" , "dev@dpdk.org" Thread-Topic: [dpdk-dev][PATCH 3/4 v3] add vector PMD scatter RX for FVL Thread-Index: AQHRExM4ex6kwLxGfEexdqkD4TWFu56EDCfg Date: Fri, 30 Oct 2015 13:46:06 +0000 Message-ID: References: <1446202336-8723-1-git-send-email-zhe.tao@intel.com> <1446210115-13927-1-git-send-email-zhe.tao@intel.com> <1446210115-13927-4-git-send-email-zhe.tao@intel.com> In-Reply-To: <1446210115-13927-4-git-send-email-zhe.tao@intel.com> Accept-Language: zh-CN, 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 3/4 v3] add vector PMD scatter RX for FVL 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: Fri, 30 Oct 2015 13:46:20 -0000 Hi, > -----Original Message----- > From: Tao, Zhe > Sent: Friday, October 30, 2015 9:02 PM > To: dev@dpdk.org > Cc: Tao, Zhe; Liang, Cunming > Subject: [dpdk-dev][PATCH 3/4 v3] add vector PMD scatter RX for FVL >=20 > To support the multiple segments in one packets when the received pkts ex= ceed > one buffer size. >=20 > Signed-off-by: Zhe Tao > --- > drivers/net/i40e/i40e_rxtx.c | 9 ++++ > drivers/net/i40e/i40e_rxtx.h | 3 ++ > drivers/net/i40e/i40e_rxtx_vec.c | 103 > +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 115 insertions(+) >=20 [...] > + /* save the partial packet for next time */ > + rxq->pkt_first_seg =3D start; > + rxq->pkt_last_seg =3D end; > + memcpy(rx_bufs, pkts, pkt_idx * (sizeof(*pkts))); > + return pkt_idx; > +} > + > + /* vPMD receive routine that reassembles scattered packets > + * > + * Notice: > + * - now only accept (nb_pkts =3D=3D RTE_I40E_VPMD_RX_BURST) > + */ I think the comments here is not correct, have a check. > +uint16_t > +i40e_recv_scattered_pkts_vec(void *rx_queue, struct rte_mbuf **rx_pkts, > + uint16_t nb_pkts) > +{ > + > + struct i40e_rx_queue *rxq =3D rx_queue; > + uint8_t split_flags[RTE_I40E_VPMD_RX_BURST] =3D {0}; > + > + /* get some new buffers */ > + uint16_t nb_bufs =3D _recv_raw_pkts_vec(rxq, rx_pkts, nb_pkts, > + split_flags); > + if (nb_bufs =3D=3D 0) > + return 0; > +