[dts] [PATCH V1 2/2] framework/pktgen: fix PacketGeneratorHelper missed rate
yufengmx
yufengx.mo at intel.com
Tue Aug 6 09:16:38 CEST 2019
setting
add missing stream rate option in prepare_stream_from_tginput method.
Signed-off-by: yufengmx <yufengx.mo at 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
More information about the dts
mailing list