* [dts] [PATCH V1]dts/pktgen: fix rfc2544 return value missing zero loss rate @ 2019-08-20 7:47 yufengmx 2019-08-20 7:47 ` [dts] [PATCH V1]framework/pktgen_base: fix rfc2544 return value missing zero yufengmx 0 siblings, 1 reply; 3+ messages in thread From: yufengmx @ 2019-08-20 7:47 UTC (permalink / raw) To: dts, lijuan.tu, yingyax.han, zhaoyan.chen; +Cc: yufengmx fix rfc2544 return value missing zero loss rate. yufengmx (1): framework/pktgen_base: fix rfc2544 return value missing zero loss rate framework/pktgen_base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) -- 1.9.3 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1]framework/pktgen_base: fix rfc2544 return value missing zero 2019-08-20 7:47 [dts] [PATCH V1]dts/pktgen: fix rfc2544 return value missing zero loss rate yufengmx @ 2019-08-20 7:47 ` yufengmx 2019-08-20 8:50 ` Han, YingyaX 0 siblings, 1 reply; 3+ messages in thread From: yufengmx @ 2019-08-20 7:47 UTC (permalink / raw) To: dts, lijuan.tu, yingyax.han, zhaoyan.chen; +Cc: yufengmx loss rate fix rfc2544 return value missing zero loss rate. Signed-off-by: yufengmx <yufengx.mo@intel.com> --- framework/pktgen_base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/pktgen_base.py b/framework/pktgen_base.py index e9d3fcb..4bb2afb 100644 --- a/framework/pktgen_base.py +++ b/framework/pktgen_base.py @@ -269,7 +269,8 @@ class PacketGenerator(object): # return data is the same with dts/etgen format # In fact, multiple link peer have multiple loss rate value, # here only pick one - return result.values()[0] + tx_num, rx_num = result.values()[0][1:] + return rate_percent, tx_num, rx_num _options = deepcopy(options) while not status and rate_percent > 0: rate_percent = rate_percent - rate_step @@ -288,7 +289,10 @@ class PacketGenerator(object): # use last result as return data to keep the same with dts/etgen format # In fact, multiple link peer have multiple loss rate value, # here only pick one - return loss_rate_table[-1][1].values()[0] + last_result = loss_rate_table[-1] + rate_percent = last_result[0] + tx_num, rx_num = last_result[1].values()[0][1:] + return rate_percent, tx_num, rx_num def measure_rfc2544_with_pps(self, stream_ids=[], options={}): """ -- 1.9.3 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1]framework/pktgen_base: fix rfc2544 return value missing zero 2019-08-20 7:47 ` [dts] [PATCH V1]framework/pktgen_base: fix rfc2544 return value missing zero yufengmx @ 2019-08-20 8:50 ` Han, YingyaX 0 siblings, 0 replies; 3+ messages in thread From: Han, YingyaX @ 2019-08-20 8:50 UTC (permalink / raw) To: Mo, YufengX, dts, Tu, Lijuan, Chen, Zhaoyan Tested-by: Han, YingyaX <yingyax.han@intel.com> -----Original Message----- From: Mo, YufengX Sent: Tuesday, August 20, 2019 3:48 PM To: dts@dpdk.org; Tu, Lijuan <lijuan.tu@intel.com>; Han, YingyaX <yingyax.han@intel.com>; Chen, Zhaoyan <zhaoyan.chen@intel.com> Cc: Mo, YufengX <yufengx.mo@intel.com> Subject: [dts][PATCH V1]framework/pktgen_base: fix rfc2544 return value missing zero loss rate fix rfc2544 return value missing zero loss rate. Signed-off-by: yufengmx <yufengx.mo@intel.com> --- framework/pktgen_base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/framework/pktgen_base.py b/framework/pktgen_base.py index e9d3fcb..4bb2afb 100644 --- a/framework/pktgen_base.py +++ b/framework/pktgen_base.py @@ -269,7 +269,8 @@ class PacketGenerator(object): # return data is the same with dts/etgen format # In fact, multiple link peer have multiple loss rate value, # here only pick one - return result.values()[0] + tx_num, rx_num = result.values()[0][1:] + return rate_percent, tx_num, rx_num _options = deepcopy(options) while not status and rate_percent > 0: rate_percent = rate_percent - rate_step @@ -288,7 +289,10 @@ class PacketGenerator(object): # use last result as return data to keep the same with dts/etgen format # In fact, multiple link peer have multiple loss rate value, # here only pick one - return loss_rate_table[-1][1].values()[0] + last_result = loss_rate_table[-1] + rate_percent = last_result[0] + tx_num, rx_num = last_result[1].values()[0][1:] + return rate_percent, tx_num, rx_num def measure_rfc2544_with_pps(self, stream_ids=[], options={}): """ -- 1.9.3 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-20 8:50 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-08-20 7:47 [dts] [PATCH V1]dts/pktgen: fix rfc2544 return value missing zero loss rate yufengmx 2019-08-20 7:47 ` [dts] [PATCH V1]framework/pktgen_base: fix rfc2544 return value missing zero yufengmx 2019-08-20 8:50 ` Han, YingyaX
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).