From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 29B8DA2EFC for ; Fri, 20 Sep 2019 08:22:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1C8B51E9E5; Fri, 20 Sep 2019 08:22:08 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 580301E99A for ; Fri, 20 Sep 2019 08:22:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 23:22:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,527,1559545200"; d="scan'208";a="181717623" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 19 Sep 2019 23:22:04 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:22:01 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Sep 2019 23:22:01 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.53]) with mapi id 14.03.0439.000; Fri, 20 Sep 2019 14:21:58 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Chen, Zhaoyan" , "Ma, LihongX" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] framework/pktgen_ixia: fix get wrong rate percent Thread-Index: AQHVaT89cNQhNtPA0k+s5SbW8VeDC6c0JOag Date: Fri, 20 Sep 2019 06:21:58 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB24B53@SHSMSX101.ccr.corp.intel.com> References: <20190912075457.19488-1-yufengx.mo@intel.com> <20190912075457.19488-2-yufengx.mo@intel.com> In-Reply-To: <20190912075457.19488-2-yufengx.mo@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.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjNjYTVjNDEtMzQ3OS00NTBjLWJjMzctMTI2MzQxNDI4NmFkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSEsxUkt1c0s3WEoyQmpLOUFTSjFNcmZUc3VQejJRajJPd093dzF6T3g3NEdQOWl6Nmx5Z09nVTlRQmE3eTNVYyJ9 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] [PATCH V1 1/1] framework/pktgen_ixia: fix get wrong rate percent 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx > Sent: Thursday, September 12, 2019 3:55 PM > To: dts@dpdk.org; Chen, Zhaoyan ; Ma, LihongX > > Cc: Mo, YufengX > Subject: [dts] [PATCH V1 1/1] framework/pktgen_ixia: fix get wrong rate > percent >=20 >=20 > fix get wrong rate percent, rate percent should get from stream config di= ct. >=20 > Signed-off-by: yufengmx > --- > framework/pktgen_ixia.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/framework/pktgen_ixia.py b/framework/pktgen_ixia.py index > 1e0675d..d324263 100644 > --- a/framework/pktgen_ixia.py > +++ b/framework/pktgen_ixia.py > @@ -1612,7 +1612,6 @@ class IxiaPacketGenerator(PacketGenerator): > tx_port =3D stream.get('tx_port') > rx_port =3D stream.get('rx_port') > pcap_file =3D stream.get('pcap_file') > - rate_percent =3D stream.get('rate') > # save port id list > if tx_port not in self._traffic_ports: > self._traffic_ports.append(tx_port) > @@ -1634,6 +1633,7 @@ class IxiaPacketGenerator(PacketGenerator): > config['fields_config'] =3D self._vm_conf > # get stream rate percent > stream_config =3D options.get('stream_config') > + rate_percent =3D stream_config.get('rate') > # set port list input parameter of ixia class > ixia_option =3D [tx_port, rx_port, pcap_file, options] > port_config[tx_port].append(ixia_option) > -- > 2.21.0