From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1 1/2]dpdk_gro_lib: add steps to check iperf data
Date: Wed, 10 Jun 2020 13:11:23 +0800 [thread overview]
Message-ID: <1591765884-31151-2-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_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
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 ` Xiao Qimai [this message]
2020-06-10 5:11 ` [dts] [PATCH V1 2/2]dpdk_gso_lib: add steps to check iperf data Xiao Qimai
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-2-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).