From: "Wang, Yinan" <yinan.wang@intel.com>
To: "Xiao, QimaiX" <qimaix.xiao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xiao, QimaiX" <qimaix.xiao@intel.com>
Subject: Re: [dts] [PATCH V1 06/11]vhost_event_idx_interrupt: update script according to testplan's update
Date: Wed, 25 Mar 2020 08:21:53 +0000 [thread overview]
Message-ID: <17876012c0264058b0009c93567470d2@intel.com> (raw)
In-Reply-To: <1585123857-130281-6-git-send-email-qimaix.xiao@intel.com>
Acked-by: Wang, Yinan <yinan.wang@intel.com>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xiao Qimai
> Sent: 2020年3月25日 16:11
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V1 06/11]vhost_event_idx_interrupt: update script
> according to testplan's update
>
> Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
> ---
> tests/TestSuite_vhost_event_idx_interrupt.py | 52
> +++++++++++++++++++++++++---
> 1 file changed, 47 insertions(+), 5 deletions(-)
>
> diff --git a/tests/TestSuite_vhost_event_idx_interrupt.py
> b/tests/TestSuite_vhost_event_idx_interrupt.py
> index fb7da60..5a9f932 100644
> --- a/tests/TestSuite_vhost_event_idx_interrupt.py
> +++ b/tests/TestSuite_vhost_event_idx_interrupt.py
> @@ -161,7 +161,7 @@ class TestVhostEventIdxInterrupt(TestCase):
> 'This qemu version should greater than 2.7 ' + \
> 'in this suite, please config it in vhost_sample.cfg file')
>
> - def start_vms(self, vm_num=1):
> + def start_vms(self, vm_num=1, packed=False):
> """
> start qemus
> """
> @@ -178,6 +178,8 @@ class TestVhostEventIdxInterrupt(TestCase):
> opt_args = "csum=on,mq=on,vectors=%d" %
> (2*self.queues + 2)
> else:
> opt_args = "csum=on"
> + if packed:
> + opt_args = opt_args + ',packed=on'
> vm_params['opt_settings'] = opt_args
> vm_info.set_vm_device(**vm_params)
> self.set_vm_cpu_number(vm_info) @@ -250,9 +252,9 @@
> class TestVhostEventIdxInterrupt(TestCase):
> """
> for i in range(len(self.vm)):
> self.vm[i].stop()
> - self.vhost.send_expect("^c", "#", 10)
> + self.dut.send_expect("killall l3fwd-power", "#", timeout=2)
>
> - def test_vhost_idx_interrupt(self):
> + def
> test_wake_up_split_ring_vhost_user_core_with_event_idx_interrupt(self):
> """
> wake up vhost-user core with l3fwd-power sample
> """
> @@ -265,7 +267,7 @@ class TestVhostEventIdxInterrupt(TestCase):
> self.send_and_verify()
> self.stop_all_apps()
>
> - def test_vhost_idx_interrupt_with_multi_queue(self):
> + def
> test_wake_up_split_ring_vhost_user_cores_with_event_idx_interrupt_mode_1
> 6_queues(self):
> """
> wake up vhost-user core with l3fwd-power sample when multi
> queues are enabled
> """
> @@ -279,7 +281,7 @@ class TestVhostEventIdxInterrupt(TestCase):
> self.send_and_verify()
> self.stop_all_apps()
>
> - def test_vhost_idx_interrupt_with_multi_vms(self):
> + def
> test_wake_up_split_ring_vhost_user_cores_by_multi_virtio_net_in_vms_with_
> event_idx_interrupt(self):
> """
> wake up vhost-user cores with l3fwd-power sample and multi VMs
> """
> @@ -292,6 +294,46 @@ class TestVhostEventIdxInterrupt(TestCase):
> self.send_and_verify()
> self.stop_all_apps()
>
> + def
> test_wake_up_packed_ring_vhost_user_core_with_event_idx_interrupt(self):
> + """
> + wake up vhost-user core with l3fwd-power sample
> + """
> + self.vm_num = 1
> + self.queues = 1
> + self.get_core_mask()
> + self.lanuch_l3fwd_power()
> + self.start_vms(vm_num=self.vm_num, packed=True)
> + self.relanuch_l3fwd_power()
> + self.send_and_verify()
> + self.stop_all_apps()
> +
> + def
> test_wake_up_packed_ring_vhost_user_cores_with_event_idx_interrupt_mod
> e_16_queues(self):
> + """
> + wake up vhost-user core with l3fwd-power sample when multi
> queues are enabled
> + """
> + self.vm_num = 1
> + self.queues = 16
> + self.get_core_mask()
> + self.lanuch_l3fwd_power()
> + self.start_vms(vm_num=self.vm_num, packed=True)
> + self.relanuch_l3fwd_power()
> + self.config_virito_net_in_vm()
> + self.send_and_verify()
> + self.stop_all_apps()
> +
> + def
> test_wake_up_packed_ring_vhost_user_cores_by_multi_virtio_net_in_vms_wi
> th_event_idx_interrupt(self):
> + """
> + wake up vhost-user cores with l3fwd-power sample and multi VMs
> + """
> + self.vm_num = 2
> + self.queues = 1
> + self.get_core_mask()
> + self.lanuch_l3fwd_power()
> + self.start_vms(vm_num=self.vm_num, packed=True)
> + self.relanuch_l3fwd_power()
> + self.send_and_verify()
> + self.stop_all_apps()
> +
> def tear_down(self):
> """
> Run after each test case.
> --
> 1.8.3.1
next prev parent reply other threads:[~2020-03-25 8:21 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 ` [dts] [PATCH V1 02/11]loopback_multi_queues: " Xiao Qimai
2020-03-25 8:23 ` 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 [this message]
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=17876012c0264058b0009c93567470d2@intel.com \
--to=yinan.wang@intel.com \
--cc=dts@dpdk.org \
--cc=qimaix.xiao@intel.com \
/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).