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 86CADA2EFC for ; Fri, 20 Sep 2019 04:17:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 34C001F229; Fri, 20 Sep 2019 04:17:35 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id E2BEB1F1ED for ; Fri, 20 Sep 2019 04:17:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2019 19:17:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,527,1559545200"; d="scan'208";a="189799377" Received: from dpdk-moyufen06.sh.intel.com ([10.67.117.220]) by orsmga003.jf.intel.com with ESMTP; 19 Sep 2019 19:17:32 -0700 From: yufengmx To: dts@dpdk.org, lihongx.ma@intel.com, lijuan.tu@intel.com Cc: yufengmx Date: Fri, 20 Sep 2019 10:19:03 +0800 Message-Id: <20190920021903.11770-3-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190920021903.11770-1-yufengx.mo@intel.com> References: <20190920021903.11770-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V3 2/2] framework/pktgen: fix PacketGeneratorHelper missed rate 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" setting add missing stream rate option in prepare_stream_from_tginput method. Signed-off-by: yufengmx --- framework/pktgen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/pktgen.py b/framework/pktgen.py index 1c8acac..2c6cf7f 100644 --- a/framework/pktgen.py +++ b/framework/pktgen.py @@ -194,6 +194,7 @@ class PacketGeneratorHelper(object): pcap = config[2] _options = deepcopy(self.default_opt) _options['pcap'] = pcap + _options['stream_config']['rate'] = ratePercent # if vm is set if vm_config: _options['fields_config'] = \ -- 2.21.0