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 707E2A00E6 for ; Tue, 6 Aug 2019 09:15:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DFC471B9CD; Tue, 6 Aug 2019 09:15:48 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 0274E1B995 for ; Tue, 6 Aug 2019 09:15:46 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2019 00:15:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,352,1559545200"; d="scan'208";a="164898126" Received: from dpdk-moyufen01.sh.intel.com ([10.67.111.77]) by orsmga007.jf.intel.com with ESMTP; 06 Aug 2019 00:15:45 -0700 From: yufengmx To: dts@dpdk.org Cc: yufengmx Date: Tue, 6 Aug 2019 15:16:38 +0800 Message-Id: <1565075798-3882-3-git-send-email-yufengx.mo@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1565075798-3882-1-git-send-email-yufengx.mo@intel.com> References: <1565075798-3882-1-git-send-email-yufengx.mo@intel.com> Subject: [dts] [PATCH V1 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..f87baa3 100644 --- a/framework/pktgen.py +++ b/framework/pktgen.py @@ -193,6 +193,7 @@ class PacketGeneratorHelper(object): stream_id = pktgen_inst.add_stream(*config) pcap = config[2] _options = deepcopy(self.default_opt) + _options['stream_config']['rate'] = ratePercent _options['pcap'] = pcap # if vm is set if vm_config: -- 1.9.3