test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Xiao, QimaiX" <qimaix.xiao@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1 05/11]vhost_enqueue_interrupt: update script according to testplan's update
Date: Tue, 31 Mar 2020 03:00:23 +0000	[thread overview]
Message-ID: <d27533ecff8d420d9ddca10f95e29f7a@intel.com> (raw)
In-Reply-To: <1585123857-130281-5-git-send-email-qimaix.xiao@intel.com>

Tested-by: Xiao, QimaiX <qimaix.xiao@intel.com>

Regards,
Xiao Qimai


> -----Original Message-----
> From: Xiao, QimaiX
> Sent: Wednesday, March 25, 2020 4:11 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts][PATCH V1 05/11]vhost_enqueue_interrupt: update script
> according to testplan's update
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
> ---
>  tests/TestSuite_vhost_enqueue_interrupt.py | 36
> +++++++++++++++++++++++-------
>  1 file changed, 28 insertions(+), 8 deletions(-)
> 
> diff --git a/tests/TestSuite_vhost_enqueue_interrupt.py
> b/tests/TestSuite_vhost_enqueue_interrupt.py
> index 509c7f3..9d0e024 100644
> --- a/tests/TestSuite_vhost_enqueue_interrupt.py
> +++ b/tests/TestSuite_vhost_enqueue_interrupt.py
> @@ -83,14 +83,14 @@ class TestVhostEnqueueInterrupt(TestCase):
>          self.core_list_virtio = core_list[0: self.queues+1]
>          self.core_list_l3fwd = core_list[self.queues+1: need_num]
> 
> -    def lanuch_virtio_user(self):
> +    def lanuch_virtio_user(self, packed=False):
>          """
>          launch virtio-user with server mode
>          """
> -        vdev = "--vdev=net_virtio_user0,mac=%s,path=./vhost-
> net,server=1,queues=%d" % (self.vmac, self.queues)
> -        eal_params =
> self.dut.create_eal_parameters(cores=self.core_list_virtio, prefix='virtio',
> no_pci=True, ports=[self.pci_info])
> +        vdev = "net_virtio_user0,mac=%s,path=./vhost-
> net,server=1,queues=%d" % (self.vmac, self.queues) if not packed else
> "net_virtio_user0,mac=%s,path=./vhost-
> net,server=1,queues=%d,packed_vq=1" % (self.vmac, self.queues)
> +        eal_params =
> + self.dut.create_eal_parameters(cores=self.core_list_virtio,
> + prefix='virtio', no_pci=True, ports=[self.pci_info], vdevs=[vdev])
>          para = " -- -i --rxq=%d --txq=%d --rss-ip" % (self.queues, self.queues)
> -        command_line_client =  self.dut.target + "/app/testpmd " + eal_params
> + vdev + para
> +        command_line_client =  self.dut.target + "/app/testpmd " +
> + eal_params + para
>          self.virtio_user.send_expect(command_line_client, "testpmd> ", 120)
>          self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20)
> 
> @@ -109,9 +109,9 @@ class TestVhostEnqueueInterrupt(TestCase):
>              self.verify_info.append(info)
> 
>          example_cmd = "./examples/l3fwd-power/build/l3fwd-power "
> -        vdev = [r"'net_vhost0,iface=vhost-net,queues=%d,client=1'" %
> self.queues]
> +        vdev = 'net_vhost0,iface=vhost-net,queues=%d,client=1' %
> + self.queues
>          para = " -- -p 0x1 --parse-ptype 1 --config '%s' " % config_info
> -        eal_params =
> self.dut.create_eal_parameters(cores=self.core_list_l3fwd, no_pci=True,
> ports=[self.pci_info], vdevs=vdev)
> +        eal_params =
> + self.dut.create_eal_parameters(cores=self.core_list_l3fwd,
> + no_pci=True, ports=[self.pci_info], vdevs=[vdev])
>          command_line_client = example_cmd + eal_params + para
>          self.vhost.get_session_before(timeout=2)
>          self.vhost.send_expect(command_line_client, "POWER", 40) @@ -156,7
> +156,7 @@ class TestVhostEnqueueInterrupt(TestCase):
>          self.dut.close_session(self.vhost)
>          self.dut.close_session(self.virtio_user)
> 
> -    def test_virtio_user_interrupt(self):
> +    def
> test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample(self
> ):
>          """
>          Check the virtio-user interrupt can work when use vhost-net as backend
>          """
> @@ -166,7 +166,7 @@ class TestVhostEnqueueInterrupt(TestCase):
>          self.lanuch_l3fwd_power()
>          self.send_and_verify()
> 
> -    def test_virtio_user_interrupt_with_multi_queue(self):
> +    def
> test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample_wh
> en_multi_queues_enabled(self):
>          """
>          Check the virtio-user interrupt can work with multi queue
>          """
> @@ -176,6 +176,26 @@ class TestVhostEnqueueInterrupt(TestCase):
>          self.lanuch_l3fwd_power()
>          self.send_and_verify()
> 
> +    def
> test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample(
> self):
> +        """
> +        Check the virtio-user interrupt can work when use vhost-net as
> backend
> +        """
> +        self.queues = 1
> +        self.get_core_list()
> +        self.lanuch_virtio_user(packed=True)
> +        self.lanuch_l3fwd_power()
> +        self.send_and_verify()
> +
> +    def
> test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample_
> when_multi_queues_enabled(self):
> +        """
> +        Check the virtio-user interrupt can work with multi queue
> +        """
> +        self.queues = 4
> +        self.get_core_list()
> +        self.lanuch_virtio_user(packed=True)
> +        self.lanuch_l3fwd_power()
> +        self.send_and_verify()
> +
>      def tear_down(self):
>          """
>          Run after each test case.
> --
> 1.8.3.1


  parent reply	other threads:[~2020-03-31  3:00 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 [this message]
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=d27533ecff8d420d9ddca10f95e29f7a@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).