From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6DDF78E80 for ; Fri, 30 Oct 2015 14:29:31 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 30 Oct 2015 06:29:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,218,1444719600"; d="scan'208";a="838845094" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 30 Oct 2015 06:29:29 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 30 Oct 2015 06:29:28 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 30 Oct 2015 06:29:28 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.253]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.96]) with mapi id 14.03.0248.002; Fri, 30 Oct 2015 21:29:26 +0800 From: "Liang, Cunming" To: "Tao, Zhe" , "dev@dpdk.org" Thread-Topic: [dpdk-dev][PATCH 2/4 v3] add vector PMD TX for FVL Thread-Index: AQHRExM2nZfLmoaAb0uI0D1aioag4p6EBr/Q Date: Fri, 30 Oct 2015 13:29:26 +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-3-git-send-email-zhe.tao@intel.com> In-Reply-To: <1446210115-13927-3-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 2/4 v3] add vector PMD TX 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:29:31 -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 2/4 v3] add vector PMD TX for FVL >=20 > The way to increase the performance of the vPMD TX is to use some fast mb= uf > release method compares to the scalar TX. >=20 > Signed-off-by: Zhe Tao > --- > drivers/net/i40e/i40e_rxtx.c | 8 ++ > drivers/net/i40e/i40e_rxtx.h | 3 + > drivers/net/i40e/i40e_rxtx_vec.c | 162 > +++++++++++++++++++++++++++++++++++++++ > 3 files changed, 173 insertions(+) > + [...] > +static inline int __attribute__((always_inline)) > +i40e_tx_free_bufs(struct i40e_tx_queue *txq) > +{ > + struct i40e_tx_entry *txep; > + uint32_t n; > + uint32_t i; > + int nb_free =3D 0; > + struct rte_mbuf *m, *free[RTE_I40E_TX_MAX_FREE_BUF_SZ]; Tiny format issue, require a blank line here. > + /* check DD bits on threshold descriptor */ > + if ((txq->tx_ring[txq->tx_next_dd].cmd_type_offset_bsz & > + rte_cpu_to_le_64(I40E_TXD_QW1_DTYPE_MASK)) !=3D > + rte_cpu_to_le_64(I40E_TX_DESC_DTYPE_DESC_DONE)) > + return 0; > + > + n =3D txq->tx_rs_thresh; > + [...]