[dts] [PATCH V1 14/17]vhost_multi_queue_qemu: change verified mpps value according to linerate
Xiao Qimai
qimaix.xiao at intel.com
Fri May 22 10:32:05 CEST 2020
Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
tests/TestSuite_vhost_multi_queue_qemu.py | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_vhost_multi_queue_qemu.py b/tests/TestSuite_vhost_multi_queue_qemu.py
index c111846..b440b95 100644
--- a/tests/TestSuite_vhost_multi_queue_qemu.py
+++ b/tests/TestSuite_vhost_multi_queue_qemu.py
@@ -137,6 +137,15 @@ class TestVhostMultiQueueQemu(TestCase):
self.verify(len(cores) >= 3, "Insufficient cores for speed testing, add the cpu number in cfg file.")
self.vm_coremask = utils.create_mask(cores)
+ @property
+ def check_value(self):
+ check_dict = dict.fromkeys(self.frame_sizes)
+ linerate = {64: 0.085, 128: 0.12, 256: 0.20, 512: 0.35, 1024: 0.50, 1280: 0.55, 1518: 0.60}
+ for size in self.frame_sizes:
+ speed = self.wirespeed(self.nic, size, self.number_of_ports)
+ check_dict[size] = round(speed * linerate[size], 2)
+ return check_dict
+
def vhost_performance(self):
"""
Verify the testpmd can receive and forward the data
@@ -168,7 +177,9 @@ class TestVhostMultiQueueQemu(TestCase):
self.number_of_ports))
data_row = [frame_size, str(Mpps), str(pct), "Mergeable Multiqueue Performance"]
self.result_table_add(data_row)
- self.verify(Mpps != 0, "The receive data of frame-size: %d is 0" % frame_size)
+ self.verify(Mpps > self.check_value[frame_size],
+ "%s of frame size %d speed verify failed, expect %s, result %s" % (
+ self.running_case, frame_size, self.check_value[frame_size], Mpps))
self.result_table_print()
def send_and_verify(self, verify_type):
--
1.8.3.1
More information about the dts
mailing list