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 47A02A2EF9 for ; Mon, 16 Sep 2019 04:45:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 241FC1C129; Mon, 16 Sep 2019 04:45:09 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B2F311BFF3 for ; Mon, 16 Sep 2019 04:45:07 +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 fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Sep 2019 19:45:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,492,1559545200"; d="scan'208";a="180298440" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga008.jf.intel.com with ESMTP; 15 Sep 2019 19:45:06 -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.439.0; Sun, 15 Sep 2019 19:45:05 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 15 Sep 2019 19:45:05 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.89]) with mapi id 14.03.0439.000; Mon, 16 Sep 2019 10:45:04 +0800 From: "Ma, LihongX" To: "Mo, YufengX" , "dts@dpdk.org" , "Chen, Zhaoyan" Thread-Topic: [dts][PATCH V1 1/1] framework/pktgen_ixia: fix get wrong rate percent Thread-Index: AQHVaT80jcUSyYav502soPZeW+maractntSA Date: Mon, 16 Sep 2019 02:45:03 +0000 Message-ID: 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: 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: [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" Tested-by: lihong -----Original Message----- From: Mo, YufengX=20 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 perc= ent fix get wrong rate percent, rate percent should get from stream config dict= . Signed-off-by: yufengmx --- framework/pktgen_ixia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/pktgen_ixia.py b/framework/pktgen_ixia.py index 1e06= 75d..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