From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1 2/2]dpdk_gso_lib: add steps to check iperf data
Date: Wed, 10 Jun 2020 13:11:24 +0800 [thread overview]
Message-ID: <1591765884-31151-3-git-send-email-qimaix.xiao@intel.com> (raw)
In-Reply-To: <1591765884-31151-1-git-send-email-qimaix.xiao@intel.com>
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
next prev parent reply other threads:[~2020-06-10 5:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2020-06-10 5:22 ` [dts] [PATCH V1 0/2] add steps to check iperf speed Xiao, QimaiX
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=1591765884-31151-3-git-send-email-qimaix.xiao@intel.com \
--to=qimaix.xiao@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).