test suite reviews and discussions
 help / color / Atom feed
* Re: [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
  2020-09-10 10:55 [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst Yinan Wang
@ 2020-09-10  2:29 ` Tu, Lijuan
  0 siblings, 0 replies; 6+ messages in thread
From: Tu, Lijuan @ 2020-09-10  2:29 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

> Subject: [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
> 
> Update typo issue.
> 
> Signed-off-by: Yinan Wang <yinan.wang@intel.com>

Applied

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

* [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
@ 2020-09-10 10:55 Yinan Wang
  2020-09-10  2:29 ` Tu, Lijuan
  0 siblings, 1 reply; 6+ messages in thread
From: Yinan Wang @ 2020-09-10 10:55 UTC (permalink / raw)
  To: dts; +Cc: Yinan Wang

Update typo issue.

Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
 test_plans/vhost_virtio_user_interrupt_test_plan.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test_plans/vhost_virtio_user_interrupt_test_plan.rst b/test_plans/vhost_virtio_user_interrupt_test_plan.rst
index 0786fb5..07c1d88 100644
--- a/test_plans/vhost_virtio_user_interrupt_test_plan.rst
+++ b/test_plans/vhost_virtio_user_interrupt_test_plan.rst
@@ -204,9 +204,9 @@ Test Case7: LSC event between vhost-user and virtio-user with split ring and cbd
 
 flow: Vhost <--> Virtio
 
-1. Start vhost-user side::
+1. Bind one cbdma port to igb_uio driver, then start vhost-user side::
 
-    ./testpmd -c 0x3000 -n 4 --no-pci --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0@00:04.0]' -- -i
+    ./testpmd -c 0x3000 -n 4 -w 00:04.0 --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0@00:04.0]' -- -i
     testpmd>set fwd mac
     testpmd>start
 
@@ -245,4 +245,4 @@ flow: TG --> NIC --> Vhost --> Virtio
 
 4. Stop sending packets with packet generator, check virtio-user related core change to sleep status.
 
-5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again.
\ No newline at end of file
+5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again.
-- 
2.25.1


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

* Re: [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
  2020-08-27 17:26 Yinan Wang
@ 2020-09-02  3:11 ` Tu, Lijuan
  0 siblings, 0 replies; 6+ messages in thread
From: Tu, Lijuan @ 2020-09-02  3:11 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

> Subject: [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
> 
> Add cbdma cases in vhost_virtio_user_interrupt test plan
> 
> Signed-off-by: Yinan Wang <yinan.wang@intel.com>

Applied

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

* [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
@ 2020-08-27 17:26 Yinan Wang
  2020-09-02  3:11 ` Tu, Lijuan
  0 siblings, 1 reply; 6+ messages in thread
From: Yinan Wang @ 2020-08-27 17:26 UTC (permalink / raw)
  To: dts; +Cc: Yinan Wang

Add cbdma cases in vhost_virtio_user_interrupt test plan

Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
 .../vhost_virtio_user_interrupt_test_plan.rst | 68 ++++++++++++++++---
 1 file changed, 58 insertions(+), 10 deletions(-)

diff --git a/test_plans/vhost_virtio_user_interrupt_test_plan.rst b/test_plans/vhost_virtio_user_interrupt_test_plan.rst
index 149d373..9ed0dba 100644
--- a/test_plans/vhost_virtio_user_interrupt_test_plan.rst
+++ b/test_plans/vhost_virtio_user_interrupt_test_plan.rst
@@ -46,12 +46,12 @@ flow: TG --> NIC --> Vhost --> Virtio
 
 1. Bind one NIC port to igb_uio, launch testpmd with a virtual vhost device as backend::
 
-    ./testpmd -c 0x7c -n 4 --socket-mem 1024,1024 --legacy-mem --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i  --rxq=1 --txq=1
+    ./testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i  --rxq=1 --txq=1
     testpmd>start
 
 2. Start l3fwd-power with a virtio-user device::
 
-    ./l3fwd-power -c 0xc000 -n 4 --socket-mem 1024,1024 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
+    ./l3fwd-power -c 0xc000 -n 4 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
     --vdev=virtio_user0,path=./vhost-net -- -p 1 -P --config="(0,0,14)" --parse-ptype
 
 3. Send packets with packet generator, check the virtio-user related core can be wakeup status.
@@ -67,7 +67,7 @@ flow: Tap --> Vhost-net --> Virtio
 
 1. Start l3fwd-power with a virtio-user device, vhost-net as backend::
 
-    ./l3fwd-power -c 0xc000 -n 4 --socket-mem 1024,1024 --legacy-mem --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
+    ./l3fwd-power -c 0xc000 -n 4 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
     --vdev=virtio_user0,path=/dev/vhost-net -- -p 1 -P --config="(0,0,14)" --parse-ptype
 
 2. Vhost-net will generate one tap device, normally, it's TAP0, config it and generate packets on it using pind cmd::
@@ -89,13 +89,13 @@ flow: Vhost <--> Virtio
 
 1. Start vhost-user side::
 
-    ./testpmd -c 0x3000 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i
+    ./testpmd -c 0x3000 -n 4 --no-pci --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i
     testpmd>set fwd mac
     testpmd>start
 
 2. Start virtio-user side::
 
-    ./testpmd -c 0xc000 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- -i --tx-offloads=0x00
+    ./testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- -i --tx-offloads=0x00
     testpmd>set fwd mac
     testpmd>start
 
@@ -116,12 +116,12 @@ flow: TG --> NIC --> Vhost --> Virtio
 
 1. Bind one NIC port to igb_uio, launch testpmd with a virtual vhost device as backend::
 
-    ./testpmd -c 0x7c -n 4 --socket-mem 1024,1024 --legacy-mem --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i  --rxq=1 --txq=1
+    ./testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i  --rxq=1 --txq=1
     testpmd>start
 
 2. Start l3fwd-power with a virtio-user device::
 
-    ./l3fwd-power -c 0xc000 -n 4 --socket-mem 1024,1024 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
+    ./l3fwd-power -c 0xc000 -n 4 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
     --vdev=virtio_user0,path=./vhost-net,packed_vq=1 -- -p 1 -P --config="(0,0,14)" --parse-ptype
 
 3. Send packets with packet generator, check the virtio-user related core can be wakeup status.
@@ -137,7 +137,7 @@ flow: Tap --> Vhost-net --> Virtio
 
 1. Start l3fwd-power with a virtio-user device, vhost-net as backend::
 
-    ./l3fwd-power -c 0xc000 -n 4 --socket-mem 1024,1024 --legacy-mem --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
+    ./l3fwd-power -c 0xc000 -n 4 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
     --vdev=virtio_user0,path=/dev/vhost-net,packed_vq=1 -- -p 1 -P --config="(0,0,14)" --parse-ptype
 
 2. Vhost-net will generate one tap device, normally, it's TAP0, config it and generate packets on it using pind cmd::
@@ -159,13 +159,13 @@ flow: Vhost <--> Virtio
 
 1. Start vhost-user side::
 
-    ./testpmd -c 0x3000 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i
+    ./testpmd -c 0x3000 -n 4 --no-pci --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0' -- -i
     testpmd>set fwd mac
     testpmd>start
 
 2. Start virtio-user side::
 
-    ./testpmd -c 0xc000 -n 4 --socket-mem 1024,1024 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,packed_vq=1 -- -i --tx-offloads=0x00
+    ./testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,packed_vq=1 -- -i --tx-offloads=0x00
     testpmd>set fwd mac
     testpmd>start
 
@@ -178,3 +178,51 @@ flow: Vhost <--> Virtio
 
     testpmd> show port info 0
     #it should show "down"
+
+Test Case7: LSC event between vhost-user and virtio-user with split ring and cbdma enabled
+==========================================================================================
+
+flow: Vhost <--> Virtio
+
+1. Start vhost-user side::
+
+    ./testpmd -c 0x3000 -n 4 --no-pci --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[txq0@00:04.0]' -- -i
+    testpmd>set fwd mac
+    testpmd>start
+
+2. Start virtio-user side::
+
+    ./testpmd -c 0xc000 -n 4 --no-pci --file-prefix=virtio --vdev=net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net -- -i --tx-offloads=0x00
+    testpmd>set fwd mac
+    testpmd>start
+
+3. Check the virtio-user side link status::
+
+    testpmd> show port info 0
+    #it should show "up"
+
+4. Quit the vhost-user side with testpmd, then check the virtio-user side link status::
+
+    testpmd> show port info 0
+    #it should show "down"
+
+Test Case8: Split ring virtio-user interrupt test with vhost-user as backend and cbdma enabled
+==============================================================================================
+
+flow: TG --> NIC --> Vhost --> Virtio
+
+1. Bind one cbdma port and one NIC port to igb_uio, launch testpmd with a virtual vhost device as backend::
+
+    ./testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=1,dmas=[txq0@00:04.0]' -- -i  --rxq=1 --txq=1
+    testpmd>start
+
+2. Start l3fwd-power with a virtio-user device::
+
+    ./l3fwd-power -c 0xc000 -n 4 --log-level='user1,7' --no-pci --file-prefix=l3fwd-pwd \
+    --vdev=virtio_user0,path=./vhost-net -- -p 1 -P --config="(0,0,14)" --parse-ptype
+
+3. Send packets with packet generator, check the virtio-user related core can be wakeup status.
+
+4. Stop sending packets with packet generator, check virtio-user related core change to sleep status.
+
+5. Restart sending packets with packet generator, check virtio-user related core change to wakeup status again.
\ No newline at end of file
-- 
2.17.1


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

* Re: [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
  2020-08-20 16:21 Yinan Wang
@ 2020-08-27  2:01 ` Tu, Lijuan
  0 siblings, 0 replies; 6+ messages in thread
From: Tu, Lijuan @ 2020-08-27  2:01 UTC (permalink / raw)
  To: Wang, Yinan, dts; +Cc: Wang, Yinan

> Subject: [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
> 
> Add prerequisites l3fwd-power code change before testw
> 
> Signed-off-by: Yinan Wang <yinan.wang@intel.com>

Applied

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

* [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst
@ 2020-08-20 16:21 Yinan Wang
  2020-08-27  2:01 ` Tu, Lijuan
  0 siblings, 1 reply; 6+ messages in thread
From: Yinan Wang @ 2020-08-20 16:21 UTC (permalink / raw)
  To: dts; +Cc: Yinan Wang

Add prerequisites l3fwd-power code change before testw

Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
 .../vhost_virtio_user_interrupt_test_plan.rst | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/test_plans/vhost_virtio_user_interrupt_test_plan.rst b/test_plans/vhost_virtio_user_interrupt_test_plan.rst
index 149d373..ebf09c6 100644
--- a/test_plans/vhost_virtio_user_interrupt_test_plan.rst
+++ b/test_plans/vhost_virtio_user_interrupt_test_plan.rst
@@ -39,6 +39,26 @@ to virtio side, check virtio-user cores can be wakeup status, and virtio-user co
 status after stop sending packets from traffic generator.This test plan cover both vhost-net and
 vhost-user as the backend.
 
+Prerequisites
+=============
+
+Modify l3fwd-power example code and recompile::
+
+        --- a/examples/l3fwd-power/main.c
+        +++ b/examples/l3fwd-power/main.c
+        @@ -245,10 +245,9 @@ uint16_t nb_lcore_params = RTE_DIM(lcore_params_array_default);
+
+         static struct rte_eth_conf port_conf = {
+                .rxmode = {
+        -               .mq_mode        = ETH_MQ_RX_RSS,
+        +               .mq_mode        = ETH_MQ_RX_NONE,
+                        .max_rx_pkt_len = RTE_ETHER_MAX_LEN,
+                        .split_hdr_size = 0,
+        -               .offloads = DEV_RX_OFFLOAD_CHECKSUM,
+                },
+                .rx_adv_conf = {
+                        .rss_conf = {
+
 Test Case1: Split ring virtio-user interrupt test with vhost-user as backend
 ============================================================================
 
-- 
2.17.1


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

end of thread, back to index

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 10:55 [dts] [PATCH v1] test_plans/vhost_virtio_user_interrupt_test_plan.rst Yinan Wang
2020-09-10  2:29 ` Tu, Lijuan
  -- strict thread matches above, loose matches on Subject: below --
2020-08-27 17:26 Yinan Wang
2020-09-02  3:11 ` Tu, Lijuan
2020-08-20 16:21 Yinan Wang
2020-08-27  2:01 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://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/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


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