* [dts] [PATCH v1] test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
@ 2020-08-20 16:15 Yinan Wang
2020-08-27 2:01 ` Tu, Lijuan
0 siblings, 1 reply; 6+ messages in thread
From: Yinan Wang @ 2020-08-20 16:15 UTC (permalink / raw)
To: dts; +Cc: Yinan Wang
Add prerequisites l3fwd-power code change before test
Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
.../vhost_virtio_pmd_interrupt_test_plan.rst | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
index 389d8d8..a00bc0d 100644
--- a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
+++ b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
@@ -44,6 +44,22 @@ Prerequisites
=============
Test ENV preparation: Kernel version > 4.8.0, mostly linux distribution don't support vfio-noiommu mode by default, so testing this case need rebuild kernel to enable vfio-noiommu.
+Also need 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 flow
=========
--
2.17.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [dts] [PATCH v1] test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
@ 2020-08-27 17:24 Yinan Wang
2020-09-02 3:11 ` Tu, Lijuan
0 siblings, 1 reply; 6+ messages in thread
From: Yinan Wang @ 2020-08-27 17:24 UTC (permalink / raw)
To: dts; +Cc: Yinan Wang
Add cbdma cases in vhost_virtio_pmd_interrupt test plan
Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
.../vhost_virtio_pmd_interrupt_test_plan.rst | 103 +++++++++++++++---
1 file changed, 88 insertions(+), 15 deletions(-)
diff --git a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
index 389d8d8..4f8b6c4 100644
--- a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
+++ b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
@@ -39,7 +39,6 @@ to virtio-pmd side,check virtio-pmd cores can be wakeup status,and virtio-pm
sleep status after stop sending packets from traffic generator.This test plan cover virtio 0.95,
virtio 1.0 and virtio 1.1 test.For packed virtqueue test, need using qemu version > 4.2.0.
-
Prerequisites
=============
@@ -56,23 +55,24 @@ Test Case 1: Basic virtio interrupt test with 4 queues
1. Bind one NIC port to igb_uio, then launch testpmd by below command::
rm -rf vhost-net*
- ./testpmd -c 0x7c -n 4 --socket-mem 1024,1024 --vdev 'net_vhost0,iface=vhost-net,queues=4' -- -i --nb-cores=4 --rxq=4 --txq=4 --rss-ip
+ ./testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=4' -- -i --nb-cores=4 --rxq=4 --txq=4 --rss-ip
2. Launch VM1, set queues=4, vectors>=2xqueues+2, mq=on::
taskset -c 34-35 \
qemu-system-x86_64 -name us-vhost-vm2 \
-cpu host -enable-kvm -m 4096 -object memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
- -smp cores=4,sockets=1 -drive file=/home/osimg/noiommu-ubt16.img \
- -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6002-:22 \
+ -smp cores=4,sockets=1 -drive file=/home/osimg/ubuntu1910.img \
+ -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \
+ -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \
-chardev socket,id=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=4 \
-device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=15 \
-vnc :10 -daemonize
3. Bind virtio port to vfio-pci::
- modprobe vfio enable_unsafe_noiommu_mode=1
- modprobe vfio-pci
+ modprobe vfio enable_unsafe_noiommu_mode=1
+ modprobe vfio-pci
./usertools/dpdk-devbind.py --bind=vfio-pci xx:xx.x
4. In VM, launch l3fwd-power sample::
@@ -91,15 +91,16 @@ Test Case 2: Basic virtio interrupt test with 16 queues
1. Bind one NIC port to igb_uio, then launch testpmd by below command::
rm -rf vhost-net*
- ./testpmd -c 0x1ffff -n 4 --socket-mem 1024 1024 --vdev 'eth_vhost0,iface=vhost-net,queues=16' -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip
+ ./testpmd -c 0x1ffff -n 4 --vdev 'eth_vhost0,iface=vhost-net,queues=16' -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip
2. Launch VM1, set queues=16, vectors>=2xqueues+2, mq=on::
taskset -c 34-35 \
qemu-system-x86_64 -name us-vhost-vm2 \
-cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
- -smp cores=16,sockets=1 -drive file=/home/osimg/noiommu-ubt16.img \
- -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6005-:22 \
+ -smp cores=16,sockets=1 -drive file=/home/osimg/ubuntu1910.img \
+ -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \
+ -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \
-chardev socket,id=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=16 \
-device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=40 \
-vnc :11 -daemonize
@@ -126,15 +127,16 @@ Test Case 3: Basic virtio-1.0 interrupt test with 4 queues
1. Bind one NIC port to igb_uio, then launch testpmd by below command::
rm -rf vhost-net*
- ./testpmd -c 0x7c -n 4 --socket-mem 1024,1024 --vdev 'net_vhost0,iface=vhost-net,queues=4' -- -i --nb-cores=4 --rxq=4 --txq=4 --rss-ip
+ ./testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=4' -- -i --nb-cores=4 --rxq=4 --txq=4 --rss-ip
2. Launch VM1, set queues=4, vectors>=2xqueues+2, mq=on::
taskset -c 34-35 \
qemu-system-x86_64 -name us-vhost-vm2 \
-cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
- -smp cores=4,sockets=1 -drive file=/home/osimg/noiommu-ubt16.img \
- -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6005-:22 \
+ -smp cores=4,sockets=1 -drive file=/home/osimg/ubuntu1910.img \
+ -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \
+ -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \
-chardev socket,id=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=4 \
-device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,disable-modern=false,mrg_rxbuf=on,csum=on,mq=on,vectors=15 \
-vnc :11 -daemonize
@@ -161,15 +163,16 @@ Test Case 4: Packed ring virtio interrupt test with 16 queues
1. Bind one NIC port to igb_uio, then launch testpmd by below command::
rm -rf vhost-net*
- ./testpmd -c 0x1ffff -n 4 --socket-mem 1024 1024 --vdev 'eth_vhost0,iface=vhost-net,queues=16' -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip
+ ./testpmd -c 0x1ffff -n 4 --vdev 'eth_vhost0,iface=vhost-net,queues=16' -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip
2. Launch VM1, set queues=16, vectors>=2xqueues+2, mq=on::
taskset -c 34-35 \
qemu-system-x86_64 -name us-vhost-vm2 \
-cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
- -smp cores=16,sockets=1 -drive file=/home/osimg/noiommu-ubt16.img \
- -monitor unix:/tmp/vm2_monitor.sock,server,nowait -net nic,vlan=2,macaddr=00:00:00:08:e8:aa,addr=1f -net user,vlan=2,hostfwd=tcp:127.0.0.1:6005-:22 \
+ -smp cores=16,sockets=1 -drive file=/home/osimg/ubuntu1910.img \
+ -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \
+ -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \
-chardev socket,id=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=16 \
-device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=40,packed=on \
-vnc :11 -daemonize
@@ -189,3 +192,73 @@ Test Case 4: Packed ring virtio interrupt test with 16 queues
6. Change dest IP address to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.
7. Stop the date transmitter, check all related core will be back to sleep status.
+
+Test Case 5: Basic virtio interrupt test with 16 queues and cbdma enabled
+=========================================================================
+
+1. Bind four cbdma ports and one NIC port to igb_uio, then launch testpmd by below command::
+
+ ./testpmd -c 0x1ffff -n 4 --vdev 'eth_vhost0,iface=vhost-net,queues=16,dmas=[txq0@80:04.0;txq1@80:04.1;txq2@80:04.2;txq3@80:04.3;txq4@80:04.4;txq5@80:04.5;txq6@80:04.6;txq7@80:04.7;txq8@00:04.0;txq9@00:04.1;txq10@00:04.2;txq11@00:04.3;txq12@00:04.4;txq13@00:04.5;txq14@00:04.6;txq15@00:04.7],dmathr=1024' -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip
+
+2. Launch VM1, set queues=16, vectors>=2xqueues+2, mq=on::
+
+ taskset -c 34-35 \
+ qemu-system-x86_64 -name us-vhost-vm2 \
+ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
+ -smp cores=16,sockets=1 -drive file=/home/osimg/ubuntu1910.img \
+ -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \
+ -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \
+ -chardev socket,id=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=16 \
+ -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,mrg_rxbuf=on,csum=on,mq=on,vectors=40 \
+ -vnc :11 -daemonize
+
+3. Bind virtio port to vfio-pci::
+
+ modprobe vfio enable_unsafe_noiommu_mode=1
+ modprobe vfio-pci
+ ./usertools/dpdk-devbind.py --bind=vfio-pci xx:xx.x
+
+4. In VM, launch l3fwd-power sample::
+
+ ./l3fwd-power -c 0x0ffff -n 4 --log-level='user1,7' -- -p 1 -P --config '(0,0,0),(0,1,1),(0,2,2),(0,3,3)(0,4,4),(0,5,5),(0,6,6),(0,7,7)(0,8,8),(0,9,9),(0,10,10),(0,11,11)(0,12,12),(0,13,13),(0,14,14),(0,15,15)' --no-numa --parse-ptype
+
+5. Send random dest ip address packets to host nic with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.
+
+6. Change dest IP address to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.
+
+7. Stop the date transmitter, check all related core will be back to sleep status.
+
+Test Case 6: Basic virtio-1.0 interrupt test with 4 queues and cbdma enabled
+============================================================================
+
+1. Bind four cbdma port and one NIC port to igb_uio, then launch testpmd by below command::
+
+ ./testpmd -c 0x7c -n 4 --vdev 'net_vhost0,iface=vhost-net,queues=4,dmas=[txq0@80:04.0;txq1@80:04.1;txq2@80:04.2;txq3@80:04.3]' -- -i --nb-cores=4 --rxq=4 --txq=4 --rss-ip
+
+2. Launch VM1, set queues=4, vectors>=2xqueues+2, mq=on::
+
+ taskset -c 34-35 \
+ qemu-system-x86_64 -name us-vhost-vm2 \
+ -cpu host -enable-kvm -m 2048 -object memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on -numa node,memdev=mem -mem-prealloc \
+ -smp cores=4,sockets=1 -drive file=/home/osimg/ubuntu1910.img \
+ -monitor unix:/tmp/vm2_monitor.sock,server,nowait -device e1000,netdev=nttsip1 \
+ -netdev user,id=nttsip1,hostfwd=tcp:127.0.0.1:6003-:22 \
+ -chardev socket,id=char1,path=./vhost-net -netdev type=vhost-user,id=mynet2,chardev=char1,vhostforce,queues=4 \
+ -device virtio-net-pci,mac=52:54:00:00:00:02,netdev=mynet2,disable-modern=false,mrg_rxbuf=on,csum=on,mq=on,vectors=15 \
+ -vnc :11 -daemonize
+
+3. Bind virtio port to vfio-pci::
+
+ modprobe vfio enable_unsafe_noiommu_mode=1
+ modprobe vfio-pci
+ ./usertools/dpdk-devbind.py --bind=vfio-pci xx:xx.x
+
+4. In VM, launch l3fwd-power sample::
+
+ ./l3fwd-power -c 0xf -n 4 --log-level='user1,7' -- -p 1 -P --config="(0,0,0),(0,1,1),(0,2,2),(0,3,3)" --no-numa --parse-ptype
+
+5. Send random dest ip address packets to host nic with packet generator, packets will distribute to all queues, check l3fwd-power log that all related cores are waked up.
+
+6. Change dest IP address to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.
+
+7. Stop the date transmitter, check all related core will be back to sleep status.
\ No newline at end of file
--
2.17.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [dts] [PATCH v1] test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
@ 2020-09-10 10:57 Yinan Wang
2020-09-10 2:30 ` Tu, Lijuan
0 siblings, 1 reply; 6+ messages in thread
From: Yinan Wang @ 2020-09-10 10:57 UTC (permalink / raw)
To: dts; +Cc: Yinan Wang
Update typo issue.
Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
test_plans/vhost_virtio_pmd_interrupt_test_plan.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
index 790357e..762ef72 100644
--- a/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
+++ b/test_plans/vhost_virtio_pmd_interrupt_test_plan.rst
@@ -212,7 +212,7 @@ Test Case 4: Packed ring virtio interrupt test with 16 queues
Test Case 5: Basic virtio interrupt test with 16 queues and cbdma enabled
=========================================================================
-1. Bind four cbdma ports and one NIC port to igb_uio, then launch testpmd by below command::
+1. Bind 16 cbdma ports and one NIC port to igb_uio, then launch testpmd by below command::
./testpmd -c 0x1ffff -n 4 --vdev 'eth_vhost0,iface=vhost-net,queues=16,dmas=[txq0@80:04.0;txq1@80:04.1;txq2@80:04.2;txq3@80:04.3;txq4@80:04.4;txq5@80:04.5;txq6@80:04.6;txq7@80:04.7;txq8@00:04.0;txq9@00:04.1;txq10@00:04.2;txq11@00:04.3;txq12@00:04.4;txq13@00:04.5;txq14@00:04.6;txq15@00:04.7],dmathr=1024' -- -i --nb-cores=16 --rxq=16 --txq=16 --rss-ip
@@ -277,4 +277,4 @@ Test Case 6: Basic virtio-1.0 interrupt test with 4 queues and cbdma enabled
6. Change dest IP address to fixed ip, packets will distribute to 1 queue, check l3fwd-power log that only one related core is waked up.
-7. Stop the date transmitter, check all related core will be back to sleep status.
\ No newline at end of file
+7. Stop the date transmitter, check all related core will be back to sleep status.
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-09-10 2:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20 16:15 [dts] [PATCH v1] test_plans/vhost_virtio_pmd_interrupt_test_plan.rst Yinan Wang
2020-08-27 2:01 ` Tu, Lijuan
2020-08-27 17:24 Yinan Wang
2020-09-02 3:11 ` Tu, Lijuan
2020-09-10 10:57 Yinan Wang
2020-09-10 2:30 ` 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).