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 7BEC92BD6 for ; Thu, 26 May 2016 04:54:05 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 25 May 2016 19:54:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,366,1459839600"; d="scan'208";a="709041536" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by FMSMGA003.fm.intel.com with ESMTP; 25 May 2016 19:54:01 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 25 May 2016 19:54:01 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 25 May 2016 19:54:01 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.58]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Thu, 26 May 2016 10:53:59 +0800 From: "Wang, Zhihong" To: Thomas Monjalon CC: "dev@dpdk.org" , "Ananyev, Konstantin" , "Richardson, Bruce" , "De Lara Guarch, Pablo" Thread-Topic: [PATCH 2/6] testpmd: configurable tx_first burst number Thread-Index: AQHRp1t5KylxnFmvj0uiV1pomTNyG5/I/KcAgAGkjSA= Date: Thu, 26 May 2016 02:53:59 +0000 Message-ID: <8F6C2BD409508844A0EFC19955BE094110743728@SHSMSX103.ccr.corp.intel.com> References: <1462488421-118990-1-git-send-email-zhihong.wang@intel.com> <1462488421-118990-3-git-send-email-zhihong.wang@intel.com> <1511439.3kRGpiG3WX@xps13> In-Reply-To: <1511439.3kRGpiG3WX@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDc5MDFjOWMtZWJmYS00NmZkLWFhMWEtNmQxMTZkNjYwMWFlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImhhMXRNQ3diY3hsVVg2eGlcLzdNQ1BoSzA1Y2VlMTZaQU81WjQwNHV4bk9RPSJ9 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/6] testpmd: configurable tx_first burst number 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: Thu, 26 May 2016 02:54:06 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Wednesday, May 25, 2016 5:35 PM > To: Wang, Zhihong > Cc: dev@dpdk.org; Ananyev, Konstantin ; > Richardson, Bruce ; De Lara Guarch, Pablo > > Subject: Re: [PATCH 2/6] testpmd: configurable tx_first burst number >=20 > 2016-05-05 18:46, Zhihong Wang: > > This patch enables configurable tx_first burst number. > > > > Use "start tx_first (burst_num)" to specify how many bursts of packets = to > > be sent before forwarding start, or "start tx_first" like before for th= e > > default 1 burst send. >=20 > The idea here is to fill the loopback latency gap with bursts. > Would it be possible to make it automatic by detecting the first > received packets to stop Tx generator? The idea is great! The implementation might not be graceful though -- current tx_first mode first calls txonly engine before calling the actual engine, say iofwd, so iofwd is not established before tx_first is done, therefore no detection. It's possible to do this, but we need to implement another forward engine like "io_retry_fill_first" alone, it complicates testpmd just for this loop back test. Looks to me it's better to use combination of existing fwd engines to do this, it's also more flexible with burst number parameters.