From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1 02/11]loopback_multi_queues: update script according to testplan's update
Date: Wed, 25 Mar 2020 16:10:48 +0800 [thread overview]
Message-ID: <1585123857-130281-2-git-send-email-qimaix.xiao@intel.com> (raw)
In-Reply-To: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com>
Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
tests/TestSuite_loopback_multi_queues.py | 55 +++++++++++++++++++++++++++-----
1 file changed, 47 insertions(+), 8 deletions(-)
diff --git a/tests/TestSuite_loopback_multi_queues.py b/tests/TestSuite_loopback_multi_queues.py
index 589bf06..174ce01 100644
--- a/tests/TestSuite_loopback_multi_queues.py
+++ b/tests/TestSuite_loopback_multi_queues.py
@@ -98,7 +98,7 @@ class TestLoopbackMultiQueues(TestCase):
start testpmd on virtio
"""
eal_param = self.dut.create_eal_parameters(cores=self.core_list_user, prefix='virtio', no_pci=True, vdevs=['net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=%d,%s' % (self.queue_number, args["version"])])
- command_line_user = self.dut.target + "/app/testpmd " + eal_param + " -- -i %s --rss-ip --nb-cores=%d --rxq=%d --txq=%d --txd=1024 --rxd=1024" % (args["path"], self.nb_cores, self.queue_number, self.queue_number)
+ command_line_user = self.dut.target + "/app/testpmd " + eal_param + " -- -i %s --nb-cores=%d --rxq=%d --txq=%d --txd=1024 --rxd=1024" % (args["path"], self.nb_cores, self.queue_number, self.queue_number)
self.virtio_user.send_expect(command_line_user, "testpmd> ", 120)
self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120)
self.virtio_user.send_expect("start", "testpmd> ", 120)
@@ -162,6 +162,7 @@ class TestLoopbackMultiQueues(TestCase):
if self.queue_number > 1:
self.check_packets_of_each_queue(frame_size)
+
def verify_liner_for_multi_queue(self):
"""
verify the Mpps of 8 queues is eight times of 1 queue
@@ -191,7 +192,7 @@ class TestLoopbackMultiQueues(TestCase):
performance for Vhost PVP virtio 1.1 Mergeable Path.
"""
virtio_pmd_arg = {"version": "in_order=0,packed_vq=1,mrg_rxbuf=1",
- "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
+ "path": ""}
for i in self.verify_queue:
self.nb_cores = i
self.queue_number = i
@@ -209,7 +210,7 @@ class TestLoopbackMultiQueues(TestCase):
performance for Vhost PVP virtio1.1 Normal Path.
"""
virtio_pmd_arg = {"version": "in_order=0,packed_vq=1,mrg_rxbuf=0",
- "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
+ "path": ""}
for i in self.verify_queue:
self.nb_cores = i
self.queue_number = i
@@ -227,7 +228,7 @@ class TestLoopbackMultiQueues(TestCase):
performance for Vhost PVP In_order mergeable Path.
"""
virtio_pmd_arg = {"version": "packed_vq=0,in_order=1,mrg_rxbuf=1",
- "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
+ "path": ""}
for i in self.verify_queue:
self.nb_cores = i
self.queue_number = i
@@ -245,7 +246,7 @@ class TestLoopbackMultiQueues(TestCase):
performance for Vhost PVP In_order no_mergeable Path.
"""
virtio_pmd_arg = {"version": "packed_vq=0,in_order=1,mrg_rxbuf=0",
- "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
+ "path": ""}
for i in self.verify_queue:
self.nb_cores = i
self.queue_number = i
@@ -263,12 +264,14 @@ class TestLoopbackMultiQueues(TestCase):
performance for Vhost PVP Mergeable Path.
"""
virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=1",
- "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
+ "path": ""}
for i in self.verify_queue:
self.nb_cores = i
self.queue_number = i
self.get_core_mask()
self.start_vhost_testpmd()
+ if self.queue_number == 8:
+ virtio_pmd_arg["path"] = "--enable-hw-vlan-strip"
self.start_virtio_testpmd(virtio_pmd_arg)
self.send_and_verify("virito mergeable")
self.close_all_testpmd()
@@ -281,7 +284,7 @@ class TestLoopbackMultiQueues(TestCase):
performance for Vhost PVP Normal Path.
"""
virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
- "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"}
+ "path": "--enable-hw-vlan-strip"}
for i in self.verify_queue:
self.nb_cores = i
self.queue_number = i
@@ -299,7 +302,7 @@ class TestLoopbackMultiQueues(TestCase):
performance for Vhost PVP Vector_RX Path
"""
virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0",
- "path": "--tx-offloads=0x0"}
+ "path": ""}
for i in self.verify_queue:
self.nb_cores = i
self.queue_number = i
@@ -312,6 +315,42 @@ class TestLoopbackMultiQueues(TestCase):
self.result_table_print()
self.verify_liner_for_multi_queue()
+ def test_loopback_with_virtio11_inorder_mergeable_path_multi_queue(self):
+ """
+ performance for Vhost PVP Vector_RX Path
+ """
+ virtio_pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=1,in_order=1",
+ "path": ""}
+ for i in self.verify_queue:
+ self.nb_cores = i
+ self.queue_number = i
+ self.get_core_mask()
+ self.start_vhost_testpmd()
+ self.start_virtio_testpmd(virtio_pmd_arg)
+ self.send_and_verify("virtio 1.1 inorder mergeable")
+ self.close_all_testpmd()
+
+ self.result_table_print()
+ self.verify_liner_for_multi_queue()
+
+ def test_loopback_with_virtio11_inorder_nonmergeable_path_multi_queue(self):
+ """
+ performance for Vhost PVP Vector_RX Path
+ """
+ virtio_pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1",
+ "path": ""}
+ for i in self.verify_queue:
+ self.nb_cores = i
+ self.queue_number = i
+ self.get_core_mask()
+ self.start_vhost_testpmd()
+ self.start_virtio_testpmd(virtio_pmd_arg)
+ self.send_and_verify("virtio 1.1 inorder non-mergeable")
+ self.close_all_testpmd()
+
+ self.result_table_print()
+ self.verify_liner_for_multi_queue()
+
def tear_down(self):
"""
Run after each test case.
--
1.8.3.1
next prev parent reply other threads:[~2020-03-25 8:17 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 8:10 [dts] [PATCH V1 01/11]loopback_multi_paths_port_restart: " Xiao Qimai
2020-03-25 8:10 ` Xiao Qimai [this message]
2020-03-25 8:23 ` [dts] [PATCH V1 02/11]loopback_multi_queues: " Wang, Yinan
2020-03-31 3:00 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 03/11]pvp_virtio_user_2M_hugepages: " Xiao Qimai
2020-03-25 8:23 ` Wang, Yinan
2020-03-31 3:00 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 04/11]pvp_virtio_user_4k_pages: " Xiao Qimai
2020-03-25 8:20 ` Wang, Yinan
2020-03-31 3:00 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 05/11]vhost_enqueue_interrupt: " Xiao Qimai
2020-03-25 8:22 ` Wang, Yinan
2020-03-31 3:00 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 06/11]vhost_event_idx_interrupt: " Xiao Qimai
2020-03-25 8:21 ` Wang, Yinan
2020-03-31 2:59 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 07/11]vhost_user_live_migration: " Xiao Qimai
2020-03-25 8:22 ` Wang, Yinan
2020-03-31 2:59 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 08/11]vhost_virtio_pmd_interrupt: " Xiao Qimai
2020-03-25 8:22 ` Wang, Yinan
2020-03-31 3:00 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 09/11]vhost_virtio_user_interrupt: " Xiao Qimai
2020-03-25 8:22 ` Wang, Yinan
2020-03-31 3:00 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 10/11]virtio_event_idx_interrupt: " Xiao Qimai
2020-03-25 8:22 ` Wang, Yinan
2020-03-31 2:59 ` Xiao, QimaiX
2020-03-25 8:10 ` [dts] [PATCH V1 11/11]virtio_pvp_regression: " Xiao Qimai
2020-03-25 8:22 ` Wang, Yinan
2020-03-31 2:59 ` Xiao, QimaiX
2020-03-25 8:22 ` [dts] [PATCH V1 01/11]loopback_multi_paths_port_restart: " Wang, Yinan
2020-03-31 3:00 ` Xiao, QimaiX
2020-03-31 3:06 ` Tu, Lijuan
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=1585123857-130281-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).