test suite reviews and discussions
 help / color / mirror / Atom feed
* Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd
  2021-01-14 14:48 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd Ling Wei
@ 2021-01-14  6:58 ` Ling, WeiX
  2021-01-14  7:05   ` Zhao, HaiyangX
  2021-01-21  7:23 ` Tu, Lijuan
  1 sibling, 1 reply; 4+ messages in thread
From: Ling, WeiX @ 2021-01-14  6:58 UTC (permalink / raw)
  To: Ling, WeiX, dts

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

Tested-by: Wei Ling <weix.ling@intel.com>

Regards,
Ling Wei

> -----Original Message-----
> From: Ling Wei <weix.ling@intel.com>
> Sent: Thursday, January 14, 2021 10:48 PM
> To: dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: [dts][PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to
> use expect pci to start testpmd


[-- Attachment #2: TestVirtioUserInterruptCBDMA.log --]
[-- Type: application/octet-stream, Size: 45889 bytes --]

[-- Attachment #3: TestVirtioUserInterrupt.log --]
[-- Type: application/octet-stream, Size: 50548 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd
  2021-01-14  6:58 ` Ling, WeiX
@ 2021-01-14  7:05   ` Zhao, HaiyangX
  0 siblings, 0 replies; 4+ messages in thread
From: Zhao, HaiyangX @ 2021-01-14  7:05 UTC (permalink / raw)
  To: Ling, WeiX, Ling, WeiX, dts

Acked-by: Haiyang Zhao <haiyangx.zhao@intel.com>

Best Regards,
Zhao Haiyang

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Ling, WeiX
> Sent: Thursday, January 14, 2021 14:59
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a
> option to use expect pci to start testpmd
> 
> Tested-by: Wei Ling <weix.ling@intel.com>
> 
> Regards,
> Ling Wei
> 
> > -----Original Message-----
> > From: Ling Wei <weix.ling@intel.com>
> > Sent: Thursday, January 14, 2021 10:48 PM
> > To: dts@dpdk.org
> > Cc: Ling, WeiX <weix.ling@intel.com>
> > Subject: [dts][PATCH V1] tests/vhost_virtio_user_interrupt:Add -a
> > option to use expect pci to start testpmd


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd
@ 2021-01-14 14:48 Ling Wei
  2021-01-14  6:58 ` Ling, WeiX
  2021-01-21  7:23 ` Tu, Lijuan
  0 siblings, 2 replies; 4+ messages in thread
From: Ling Wei @ 2021-01-14 14:48 UTC (permalink / raw)
  To: dts; +Cc: Ling Wei

Add -a option to use expect pci to start testpmd.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_vhost_virtio_user_interrupt.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 9f89c460..be02ee52 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -127,17 +127,21 @@ class TestVirtioUserInterrupt(TestCase):
         testcmd = self.app_testpmd_path + " "
         vdev = ["net_vhost0,iface=vhost-net,queues=1,client=0"]
         para = " -- -i --rxq=1 --txq=1"
+        allow_pci = [self.pci_info]
+        if dmas:
+            for item in self.used_cbdma:
+                allow_pci.append(item)
         if len(pci) == 0:
             if dmas:
                 vdev = ["net_vhost0,iface=vhost-net,queues=1,dmas=[%s]" % dmas]
-                eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, vdevs=vdev)
+                eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=allow_pci, vdevs=vdev)
             else:
-                eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=[self.pci_info], vdevs=vdev)
+                eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=allow_pci, vdevs=vdev)
         else:
             if dmas:
                 vdev = ["net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[%s]" % dmas]
                 para = " -- -i"
-                eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=pci, prefix='vhost', vdevs=vdev)
+                eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=allow_pci, prefix='vhost', vdevs=vdev)
             else:
                 eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, prefix='vhost', no_pci=True, vdevs=vdev)
         cmd_vhost_user = testcmd + eal_params + para
@@ -160,6 +164,7 @@ class TestVirtioUserInterrupt(TestCase):
         self.virtio.send_expect("start", "testpmd>", 20)
 
     def check_interrupt_log(self, status):
+        time.sleep(3)
         out = self.l3fwd.get_session_before()
         if status == "waked up":
             info = "lcore %s is waked up from rx interrupt on port 0 queue 0"
-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd
  2021-01-14 14:48 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd Ling Wei
  2021-01-14  6:58 ` Ling, WeiX
@ 2021-01-21  7:23 ` Tu, Lijuan
  1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2021-01-21  7:23 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> 
> Add -a option to use expect pci to start testpmd.
> 
> Signed-off-by: Ling Wei <weix.ling@intel.com>
> ---
>  tests/TestSuite_vhost_virtio_user_interrupt.py | 11 ++++++++---
>  1 file changed, 8 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py
> b/tests/TestSuite_vhost_virtio_user_interrupt.py
> index 9f89c460..be02ee52 100644
> --- a/tests/TestSuite_vhost_virtio_user_interrupt.py
> +++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
> @@ -127,17 +127,21 @@ class TestVirtioUserInterrupt(TestCase):
>          testcmd = self.app_testpmd_path + " "
>          vdev = ["net_vhost0,iface=vhost-net,queues=1,client=0"]
>          para = " -- -i --rxq=1 --txq=1"
> +        allow_pci = [self.pci_info]
> +        if dmas:
> +            for item in self.used_cbdma:
> +                allow_pci.append(item)
>          if len(pci) == 0:
>              if dmas:
>                  vdev = ["net_vhost0,iface=vhost-net,queues=1,dmas=[%s]" % dmas]
> -                eal_params =
> self.dut.create_eal_parameters(cores=self.core_list_vhost, vdevs=vdev)
> +                eal_params =
> + self.dut.create_eal_parameters(cores=self.core_list_vhost,
> + ports=allow_pci, vdevs=vdev)
>              else:
> -                eal_params =
> self.dut.create_eal_parameters(cores=self.core_list_vhost,
> ports=[self.pci_info], vdevs=vdev)
> +                eal_params =
> + self.dut.create_eal_parameters(cores=self.core_list_vhost,
> + ports=allow_pci, vdevs=vdev)
>          else:
>              if dmas:
>                  vdev = ["net_vhost0,iface=vhost-
> net,queues=1,client=0,dmas=[%s]" % dmas]
>                  para = " -- -i"
> -                eal_params =
> self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=pci,
> prefix='vhost', vdevs=vdev)
> +                eal_params =
> + self.dut.create_eal_parameters(cores=self.core_list_vhost,
> + ports=allow_pci, prefix='vhost', vdevs=vdev)
>              else:
>                  eal_params =
> self.dut.create_eal_parameters(cores=self.core_list_vhost, prefix='vhost',
> no_pci=True, vdevs=vdev)
>          cmd_vhost_user = testcmd + eal_params + para @@ -160,6 +164,7 @@
> class TestVirtioUserInterrupt(TestCase):
>          self.virtio.send_expect("start", "testpmd>", 20)
> 
>      def check_interrupt_log(self, status):
> +        time.sleep(3)
>          out = self.l3fwd.get_session_before()

    Prefer self.l3fwd.get_session_before(timeout=3) to sleep

>          if status == "waked up":
>              info = "lcore %s is waked up from rx interrupt on port 0 queue 0"
> --
> 2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-21  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 14:48 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:Add -a option to use expect pci to start testpmd Ling Wei
2021-01-14  6:58 ` Ling, WeiX
2021-01-14  7:05   ` Zhao, HaiyangX
2021-01-21  7:23 ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git