test suite reviews and discussions
 help / color / mirror / Atom feed
From: yufengmx <yufengx.mo@intel.com>
To: dts@dpdk.org
Cc: yufengmx <yufengx.mo@intel.com>
Subject: [dts] [PATCH V1 2/2] framework/pktgen: fix PacketGeneratorHelper missed rate
Date: Tue,  6 Aug 2019 15:16:38 +0800	[thread overview]
Message-ID: <1565075798-3882-3-git-send-email-yufengx.mo@intel.com> (raw)
In-Reply-To: <1565075798-3882-1-git-send-email-yufengx.mo@intel.com>

 setting

add missing stream rate option in prepare_stream_from_tginput method.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 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


  parent reply	other threads:[~2019-08-06  7:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-06  7:16 [dts] [PATCH V1 0/2] dts/pktgen: fix missing parameter setting yufengmx
2019-08-06  7:16 ` [dts] [PATCH V1 1/2] framework/pktgen_base: fix measure_throughput missed option yufengmx
2019-08-06  7:16 ` yufengmx [this message]
2019-08-08  5:39 ` [dts] [PATCH V1 0/2] dts/pktgen: fix missing parameter setting Tu, Lijuan
2019-08-08  5:42   ` Mo, YufengX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1565075798-3882-3-git-send-email-yufengx.mo@intel.com \
    --to=yufengx.mo@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).