* [dts] [PATCH v2] test_plans/vswitch_sample_cbdma_test_plan.rst
@ 2021-07-29 17:51 Yinan Wang
2021-08-10 8:58 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Yinan Wang @ 2021-07-29 17:51 UTC (permalink / raw)
To: dts; +Cc: Yinan Wang
1. Change case2 and case3 with in-order flag to 0 since feature bit not support in this case.
2. Add a tip that cbdma case need special dpdk code.
3. Correct test app name.
Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
test_plans/vswitch_sample_cbdma_test_plan.rst | 24 +++++++++----------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/test_plans/vswitch_sample_cbdma_test_plan.rst b/test_plans/vswitch_sample_cbdma_test_plan.rst
index 8fcf0b0a..1b8d293c 100644
--- a/test_plans/vswitch_sample_cbdma_test_plan.rst
+++ b/test_plans/vswitch_sample_cbdma_test_plan.rst
@@ -40,8 +40,8 @@ Description
Vswitch sample can leverage IOAT to accelerate vhost async data-path from dpdk 20.11. This plan test
vhost DMA operation callbacks for CBDMA PMD and vhost async data-path in vhost sample.
From 20.11 to 21.02, only split ring support cbdma copy with vhost enqueue direction;
-from 21.05,packed ring also can support cbdma copy with vhost enqueue direction;
-from 21.08, split ring support cbdma copy both vhost enqueue and dequeue direction.
+from 21.05,packed ring also can support cbdma copy with vhost enqueue direction.
Prerequisites
=============
@@ -67,7 +67,7 @@ Test Case1: PVP performance check with CBDMA channel using vhost async driver
2. On host, launch dpdk-vhost by below command::
- ./dpdk-vhost -c 0x1c000000 -n 4 -- \
+ ./dpdk-vhost -c 31-32 -n 4 -- \
-p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat --stats 1 --socket-file /tmp/vhost-net --dmas [txd0@0000:00:04.0] --client
3. Launch virtio-user with packed ring::
@@ -102,10 +102,10 @@ Test Case2: PVP test with two VM and two CBDMA channels using vhost async driver
3. launch two virtio-user ports::
./dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \
- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1,server=1,mrg_rxbuf=0,in_order=1,vectorized=1,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
+ --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1,server=1,mrg_rxbuf=0,in_order=0,vectorized=1,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
./dpdk-testpmd -l 31-32 -n 4 --no-pci --file-prefix=testpmd1 \
- --vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net1,queues=1,server=1,mrg_rxbuf=1,in_order=1,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
+ --vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net1,queues=1,server=1,mrg_rxbuf=1,in_order=0,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
4. Start pkts from two virtio-user side individually to let vswitch know the mac addr::
@@ -114,7 +114,7 @@ Test Case2: PVP test with two VM and two CBDMA channels using vhost async driver
testpmd1>start tx_first
testpmd1>start tx_first
-5. Inject IMIX packets (64b...1518b) with VLAN_id=1000 and dest_mac=virtio_mac_addresss (00:11:22:33:44:10 and 00:11:22:33:44:11) to NIC using packet generator,record performance number can get expected from Packet generator rx side.
+5. Inject IMIX packets (64b...1518b) with dest_mac=virtio_mac_addresss (00:11:22:33:44:10 and 00:11:22:33:44:11) to NIC using packet generator,record performance number can get expected from Packet generator rx side.
6. Stop dpdk-vhost side and relaunch it with same cmd as step2.
@@ -134,16 +134,16 @@ Test Case3: VM2VM forwarding test with two CBDMA channels
2. On host, launch dpdk-vhost by below command::
- ./x86_64-native-linuxapp-gcc/examples/dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \
+ ./dpdk-vhost -l 26-28 -n 4 -- -p 0x1 --mergeable 1 --vm2vm 1 --dma-type ioat \
--socket-file /tmp/vhost-net0 --socket-file /tmp/vhost-net1 --dmas [txd0@0000:00:04.0,txd1@0000:00:04.1] --client
3. Launch virtio-user::
- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \
- --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1,server=1,mrg_rxbuf=1,in_order=1,vectorized=1,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
+ ./dpdk-testpmd -l 29-30 -n 4 --no-pci --file-prefix=testpmd0 \
+ --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net0,queues=1,server=1,mrg_rxbuf=1,in_order=0,vectorized=1,packed_vq=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
- ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 31-32 -n 4 --no-pci --file-prefix=testpmd1 \
- --vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net1,queues=1,server=1,mrg_rxbuf=1,in_order=1,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
+ ./dpdk-testpmd -l 31-32 -n 4 --no-pci --file-prefix=testpmd1 \
+ --vdev=net_virtio_user0,mac=00:11:22:33:44:11,path=/tmp/vhost-net1,queues=1,server=1,mrg_rxbuf=1,in_order=0,vectorized=1 -- -i --rxq=1 --txq=1 --txd=1024 --rxd=1024 --nb-cores=1
4. Loop pkts between two virtio-user sides, record performance number with 64b/2000b/8000b/IMIX pkts can get expected::
@@ -370,4 +370,4 @@ Test Case6: VM2VM packed ring test with iperf and reconnect stable test
Under VM1, run: `scp [xxx] root@1.1.1.8:/` [xxx] is the file name
-10. Rerun step 7-9 five times.
\ No newline at end of file
+10. Rerun step 7-9 five times.
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH v2] test_plans/vswitch_sample_cbdma_test_plan.rst
2021-07-29 17:51 [dts] [PATCH v2] test_plans/vswitch_sample_cbdma_test_plan.rst Yinan Wang
@ 2021-08-10 8:58 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2021-08-10 8:58 UTC (permalink / raw)
To: Wang, Yinan, dts; +Cc: Wang, Yinan
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Yinan Wang
> Sent: 2021年7月30日 1:51
> To: dts@dpdk.org
> Cc: Wang, Yinan <yinan.wang@intel.com>
> Subject: [dts] [PATCH v2] test_plans/vswitch_sample_cbdma_test_plan.rst
>
> 1. Change case2 and case3 with in-order flag to 0 since feature bit not support in
> this case.
> 2. Add a tip that cbdma case need special dpdk code.
> 3. Correct test app name.
>
> Signed-off-by: Yinan Wang <yinan.wang@intel.com>
Applied failed. As error below:
Applying: test_plans/vswitch_sample_cbdma_test_plan.rst
error: patch fragment without header at line 13: @@ -102,10 +102,10 @@ Test Case2: PVP test with two VM and two CBDMA channels using vhost async driver
error: could not build fake ancestor
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-10 8:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-29 17:51 [dts] [PATCH v2] test_plans/vswitch_sample_cbdma_test_plan.rst Yinan Wang
2021-08-10 8:58 ` Tu, Lijuan
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).