[dts] [PATCH V3 2/2] framework/pktgen: fix PacketGeneratorHelper missed rate

Tu, Lijuan lijuan.tu at intel.com
Fri Sep 20 08:08:55 CEST 2019


Applied, thanks

> -----Original Message-----
> From: Mo, YufengX
> Sent: Friday, September 20, 2019 10:19 AM
> To: dts at dpdk.org; Ma, LihongX <lihongx.ma at intel.com>; Tu, Lijuan
> <lijuan.tu at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts][PATCH V3 2/2] framework/pktgen: fix PacketGeneratorHelper
> missed rate
> 
>  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..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



More information about the dts mailing list