* [dts] [PATCH V1 1/2]dpdk_gro_lib: add steps to check iperf data
2020-06-10 5:11 [dts] [PATCH V1 0/2] add steps to check iperf speed Xiao Qimai
@ 2020-06-10 5:11 ` Xiao Qimai
2020-06-10 5:11 ` [dts] [PATCH V1 2/2]dpdk_gso_lib: " Xiao Qimai
2020-06-10 5:22 ` [dts] [PATCH V1 0/2] add steps to check iperf speed Xiao, QimaiX
2 siblings, 0 replies; 4+ messages in thread
From: Xiao Qimai @ 2020-06-10 5:11 UTC (permalink / raw)
To: dts; +Cc: Xiao Qimai
Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_dpdk_gro_lib.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py
index 49a7407..fae453a 100644
--- a/tests/TestSuite_dpdk_gro_lib.py
+++ b/tests/TestSuite_dpdk_gro_lib.py
@@ -266,6 +266,7 @@ class TestDPDKGROLib(TestCase):
iperfdata = re.compile('[\d+]*.[\d+]* [M|G|K]bits/sec').findall(fmsg)
print(iperfdata)
self.verify(iperfdata, 'There no data about this case')
+ data_str = iperfdata[-1].strip().split()
self.result_table_create(['Data', 'Unit'])
results_row = [run_info]
results_row.append(iperfdata[-1])
@@ -273,6 +274,14 @@ class TestDPDKGROLib(TestCase):
self.result_table_print()
self.output_result = "Iperf throughput is %s" % iperfdata[-1]
self.logger.info(self.output_result)
+ if self.nic in ['fortville_spirit']:
+ data = data_str[0]
+ unit = data_str[1]
+ self.verify(unit == "Gbits/sec", 'The unit of throughput is not Gbits/sec')
+ if run_info == 'GRO lib':
+ self.verify(float(data) > 28, 'speed not reach the expect')
+ else:
+ self.verify(float(data) > 8, 'speed not reach the expect')
def test_vhost_gro_tcp_lightmode(self):
self.config_kernel_nic_host(0)
--
1.8.3.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [dts] [PATCH V1 2/2]dpdk_gso_lib: add steps to check iperf data
2020-06-10 5:11 [dts] [PATCH V1 0/2] add steps to check iperf speed Xiao Qimai
2020-06-10 5:11 ` [dts] [PATCH V1 1/2]dpdk_gro_lib: add steps to check iperf data Xiao Qimai
@ 2020-06-10 5:11 ` Xiao Qimai
2020-06-10 5:22 ` [dts] [PATCH V1 0/2] add steps to check iperf speed Xiao, QimaiX
2 siblings, 0 replies; 4+ messages in thread
From: Xiao Qimai @ 2020-06-10 5:11 UTC (permalink / raw)
To: dts; +Cc: Xiao Qimai
Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_dpdk_gso_lib.py | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/TestSuite_dpdk_gso_lib.py b/tests/TestSuite_dpdk_gso_lib.py
index 433869a..e435211 100644
--- a/tests/TestSuite_dpdk_gso_lib.py
+++ b/tests/TestSuite_dpdk_gso_lib.py
@@ -285,6 +285,21 @@ class TestDPDKGsoLib(TestCase):
self.result_table_print()
self.output_result = "Iperf throughput is %s" % iperfdata[-1]
self.logger.info(self.output_result)
+ res_li = iperfdata[-1].strip().split()
+ data = float(res_li[0])
+ unit = res_li[1]
+ if self.nic in ['fortville_spirit']:
+ self.verify(unit == 'Gbits/sec', 'data unit not correct')
+ if self.running_case in ['test_kernel_gso_dpdk', 'test_no_gso_dpdk']:
+ self.verify(data > 8, 'data speed not reach expect')
+ elif self.running_case == 'test_vhost_gso_dpdk_tcp':
+ self.verify(data > 11, 'data speed not reach expect')
+ elif self.running_case == 'test_vhost_gso_dpdk_udp':
+ self.verify(data > 4, 'data speed not reach expect')
+ elif self.running_case in ['test_vhost_gso_with_gre', 'test_vhost_gso_with_vxlan']:
+ self.verify(data > 5, 'data speed not reach expect')
+ elif self.running_case == 'test_vhost_tso_dpdk':
+ self.verify(data > 20, 'data speed not reach expect')
def test_vhost_gso_dpdk_tcp(self):
"""
--
1.8.3.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1 0/2] add steps to check iperf speed
2020-06-10 5:11 [dts] [PATCH V1 0/2] add steps to check iperf speed Xiao Qimai
2020-06-10 5:11 ` [dts] [PATCH V1 1/2]dpdk_gro_lib: add steps to check iperf data Xiao Qimai
2020-06-10 5:11 ` [dts] [PATCH V1 2/2]dpdk_gso_lib: " Xiao Qimai
@ 2020-06-10 5:22 ` Xiao, QimaiX
2 siblings, 0 replies; 4+ messages in thread
From: Xiao, QimaiX @ 2020-06-10 5:22 UTC (permalink / raw)
To: dts
[-- Attachment #1: Type: text/plain, Size: 626 bytes --]
Tested-by: Xiao, QimaiX <qimaix.xiao@intel.com>
Regards,
Xiao Qimai
> -----Original Message-----
> From: Xiao, QimaiX <qimaix.xiao@intel.com>
> Sent: Wednesday, June 10, 2020 1:11 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts][PATCH V1 0/2] add steps to check iperf speed
>
> *. add steps to check iperf speed
>
> Xiao Qimai (2):
> add steps to check iperf data
> add steps to check iperf data
>
> tests/TestSuite_dpdk_gro_lib.py | 9 +++++++++
> tests/TestSuite_dpdk_gso_lib.py | 15 +++++++++++++++
> 2 files changed, 24 insertions(+)
>
> --
> 1.8.3.1
[-- Attachment #2: TestDPDKGsoLib.log --]
[-- Type: application/octet-stream, Size: 179142 bytes --]
[-- Attachment #3: TestDPDKGROLib.log --]
[-- Type: application/octet-stream, Size: 106114 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread