From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id F059EA046B for ; Wed, 26 Jun 2019 10:58:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 785252BE3; Wed, 26 Jun 2019 10:58:29 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 983BC2BA7 for ; Wed, 26 Jun 2019 10:58:27 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 01:58:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="166970070" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga006.jf.intel.com with ESMTP; 26 Jun 2019 01:58:26 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 01:58:23 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 26 Jun 2019 01:58:23 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.87]) by shsmsx102.ccr.corp.intel.com ([169.254.2.33]) with mapi id 14.03.0439.000; Wed, 26 Jun 2019 16:58:21 +0800 From: "Tu, Lijuan" To: "Zhao, MeijuanX" , "dts@dpdk.org" CC: "Zhao, MeijuanX" Thread-Topic: [dts] [next][PATCH V1] tests/link_flowctrl add transmission packet time and fix description issue Thread-Index: AQHVJm1DQ+AuXb1sNU6GXMTR4KzfgKatrbXg Date: Wed, 26 Jun 2019 08:58:20 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAC5473@SHSMSX101.ccr.corp.intel.com> References: <20190619150450.41225-1-meijuanx.zhao@intel.com> In-Reply-To: <20190619150450.41225-1-meijuanx.zhao@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWJkMGFhNTktNmFiYi00NGRkLTkyZGQtZTIxN2FkYTI2NTVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTGZ6YXlsbkNpbWY0cnpSZmJIaHB0VGZ2bStjNW5mXC85Y01oa29kYzlURjRjUW1XbDd6aDVRU1wvWlwvWisySG9cL0UifQ== 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: [dts] [next][PATCH V1] tests/link_flowctrl add transmission packet time and fix description issue X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Merged into master > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhaomeijuan > Sent: Wednesday, June 19, 2019 11:05 PM > To: dts@dpdk.org > Cc: Zhao, MeijuanX > Subject: [dts] [next][PATCH V1] tests/link_flowctrl add transmission pack= et > time and fix description issue >=20 > *.add transmission packet time to synchronous etgen transmission packet > time *.result[0] is loss packet rate, so it's not necessary to devide 100= or add > percent >=20 > Signed-off-by: zhaomeijuan > --- > tests/TestSuite_link_flowctrl.py | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flow= ctrl.py > index 0192498..5a8833d 100644 > --- a/tests/TestSuite_link_flowctrl.py > +++ b/tests/TestSuite_link_flowctrl.py > @@ -121,11 +121,12 @@ class TestLinkFlowctrl(TestCase): > # run packet generator > streams =3D self.pktgen_helper.prepare_stream_from_tginput(tgenI= nput, > 100, > None, self.tester.pktgen) > - result =3D self.tester.pktgen.measure_loss(stream_ids=3Dstreams) > + options =3D {'duration': 60} > + result =3D self.tester.pktgen.measure_loss(stream_ids=3Dstreams, > + options=3Doptions) >=20 > self.dut.send_expect("stop", "testpmd> ") >=20 > - return result[0]/100 > + return result[0] >=20 > def get_testpmd_port_stats(self, ports): > """ > @@ -357,7 +358,7 @@ class TestLinkFlowctrl(TestCase): > tx_flow_control=3D'on', > pause_frame_fwd=3D'on') >=20 > - self.logger.info("Packet loss: %.3f%%" % result) > + self.logger.info("Packet loss: %.3f" % result) >=20 > self.verify(result <=3D 0.01, > "Link flow control fail, the loss percent is more th= an 1%") @@ - > 371,7 +372,7 @@ class TestLinkFlowctrl(TestCase): > tx_flow_control=3D'on', > pause_frame_fwd=3D'off') >=20 > - self.logger.info("Packet loss: %.3f%%" % result) > + self.logger.info("Packet loss: %.3f" % result) >=20 > self.verify(result <=3D 0.01, > "Link flow control fail, the loss percent is more th= an 1%") @@ - > 385,7 +386,7 @@ class TestLinkFlowctrl(TestCase): > tx_flow_control=3D'on', > pause_frame_fwd=3D'off') >=20 > - self.logger.info("Packet loss: %.3f%%" % result) > + self.logger.info("Packet loss: %.3f" % result) >=20 > self.verify(result <=3D 0.01, > "Link flow control fail, the loss percent is more th= an 1%") @@ - > 399,7 +400,7 @@ class TestLinkFlowctrl(TestCase): > tx_flow_control=3D'off', > pause_frame_fwd=3D'on') >=20 > - self.logger.info("Packet loss: %.3f%%" % result) > + self.logger.info("Packet loss: %.3f" % result) >=20 > self.verify(result >=3D 0.5, > "Link flow control fail, the loss percent is less th= an 50%") @@ - > 413,7 +414,7 @@ class TestLinkFlowctrl(TestCase): > tx_flow_control=3D'off', > pause_frame_fwd=3D'off') >=20 > - self.logger.info("Packet loss: %.3f%%" % result) > + self.logger.info("Packet loss: %.3f" % result) >=20 > self.verify(result >=3D 0.5, > "Link flow control fail, the loss percent is less th= an 50%") @@ - > 427,7 +428,7 @@ class TestLinkFlowctrl(TestCase): > tx_flow_control=3D'on', > pause_frame_fwd=3D'off') >=20 > - self.logger.info("Packet loss: %.3f%%" % result) > + self.logger.info("Packet loss: %.3f" % result) >=20 > self.verify(result <=3D 0.01, > "Link flow control fail, the loss percent is more th= an 1%") > -- > 2.17.1