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 D4F179E3 for ; Tue, 20 Jun 2017 10:04:54 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2017 01:04:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,364,1493708400"; d="scan'208";a="276349087" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by fmsmga004.fm.intel.com with ESMTP; 20 Jun 2017 01:04:52 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.133]) by IRSMSX103.ger.corp.intel.com ([169.254.3.9]) with mapi id 14.03.0319.002; Tue, 20 Jun 2017 09:03:56 +0100 From: "De Lara Guarch, Pablo" To: Thomas Monjalon CC: "dev@dpdk.org" , "Wu, Jingjing" Thread-Topic: [dpdk-dev] [PATCH v3] app/testpmd: add parameter to start forwarding TX first Thread-Index: AQHS5c96uLZACKAl/0e4LbZpoCRzpKIl03cAgAbRx4CAAMVQQA== Date: Tue, 20 Jun 2017 08:03:56 +0000 Message-ID: References: <20170609023044.75127-1-pablo.de.lara.guarch@intel.com> <20170615040403.78712-1-pablo.de.lara.guarch@intel.com> <2741486.Oz5ccjHQup@xps> In-Reply-To: <2741486.Oz5ccjHQup@xps> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGNmNzNiYTYtNmM4ZS00NWMzLWE4ZjAtNjFjZWFhYzgyMTNmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjRlT1NjZjhXNW0weGFrOUdTbWJNWUZCSytHRjhZQTdKa042SmNzdjFJTEU9In0= x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3] app/testpmd: add parameter to start forwarding TX first X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 08:04:55 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas@monjalon.net] > Sent: Monday, June 19, 2017 10:13 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org; Wu, Jingjing > Subject: Re: [dpdk-dev] [PATCH v3] app/testpmd: add parameter to start > forwarding TX first >=20 > 15/06/2017 14:05, De Lara Guarch, Pablo: > > > Add parameter to start forwarding sending first > > > a burst of packets, which is useful when testing > > > a loopback connection. > > > > > > This was already implemented as an internal command, > > > but adding it as a parameter is interesting, as it > > > allows the user to test a loopback connection without > > > entering in the internal command line. > > > > > > Signed-off-by: Pablo de Lara > > > --- > > > --- a/doc/guides/testpmd_app_ug/run_app.rst > > > +++ b/doc/guides/testpmd_app_ug/run_app.rst > > > @@ -188,6 +188,14 @@ The commandline options are: > > > > > > Start forwarding on initialization. > > > > > > +* ``--tx-first`` > > > + > > > + Start forwarding, after sending a burst of packets first. > > > + > > > +.. Note:: > > > + > > > + This flag should be only used in non-interactive mode. >=20 > I don't really understand the benefit of this option. > Why is it better than > echo start tx_first | testpmd -i > ? This is a good way to test a loopback connection without having to get into= interactive mode. With the other patch that I sent, to show port statistics periodically (http://dpdk.org/dev/patchwork/patch/25344/), the app can show how traffic = is forwarded having a simple loopback connection, without anything else required by the = user. Thanks, Pablo