From: Yinan Wang <yinan.wang@intel.com>
To: dts@dpdk.org
Cc: Yinan Wang <yinan.wang@intel.com>
Subject: [dts] [PATCH v1] test_plans/dpdk_gro_lib_test_plan.rst
Date: Fri, 21 Aug 2020 07:28:07 -0400 [thread overview]
Message-ID: <20200821112807.49222-1-yinan.wang@intel.com> (raw)
Add cbdma enable case in dpdk gro lib test plan
Signed-off-by: Yinan Wang <yinan.wang@intel.com>
---
test_plans/dpdk_gro_lib_test_plan.rst | 60 ++++++++++++++++++++++++++-
1 file changed, 58 insertions(+), 2 deletions(-)
diff --git a/test_plans/dpdk_gro_lib_test_plan.rst b/test_plans/dpdk_gro_lib_test_plan.rst
index 1ec8c23..b71023e 100644
--- a/test_plans/dpdk_gro_lib_test_plan.rst
+++ b/test_plans/dpdk_gro_lib_test_plan.rst
@@ -275,8 +275,6 @@ Test Case4: DPDK GRO test with vxlan traffic
Vxlan topology
--------------
-::
-
VM Host
50.1.1.2 50.1.1.1
| |
@@ -347,3 +345,61 @@ Vxlan topology
Host side : ip netns exec t2 iperf -c 50.1.1.2 -i 2 -t 60 -f g -m
VM side: iperf -s -f g
+
+Test Case5: DPDK GRO test with CBDMA enable using tcp/ipv4 traffic
+==================================================================
+
+Test flow
+=========
+
+NIC2(In kernel) -> NIC1(DPDK) -> testpmd(csum fwd) -> Vhost -> Virtio-net
+
+1. Connect two nic port directly, put nic2 into another namesapce and turn on the tso of this nic port by below cmds::
+
+ ip netns del ns1
+ ip netns add ns1
+ ip link set enp26s0f0 netns ns1 # [enp216s0f0] is the name of nic2
+ ip netns exec ns1 ifconfig enp26s0f0 1.1.1.8 up
+ ip netns exec ns1 ethtool -K enp26s0f0 tso on
+
+2. Bind cbdma port and nic1 to igb_uio, launch vhost-user with testpmd and set flush interval to 1::
+
+ ./dpdk-devbind.py -b igb_uio xx:xx.x
+ ./x86_64-native-linuxapp-gcc/app/testpmd -l 29-30 -n 4 \
+ --file-prefix=vhost --vdev 'net_vhost0,iface=vhost-net,queues=2,dmas=[txq0@80:04.0;txq1@80:04.1],dmathr=1024' -- -i --txd=1024 --rxd=1024 --txq=2 --rxq=2
+ testpmd>set fwd csum
+ testpmd>stop
+ testpmd>port stop 0
+ testpmd>port stop 1
+ testpmd>csum set tcp hw 0
+ testpmd>csum set ip hw 0
+ testpmd>csum set tcp hw 1
+ testpmd>csum set ip hw 1
+ testpmd>set port 0 gro on
+ testpmd>set gro flush 1
+ testpmd>port start 0
+ testpmd>port start 1
+ testpmd>start
+
+3. Set up vm with virto device and using kernel virtio-net driver::
+
+ taskset -c 31 /home/qemu-install/qemu-3.0/bin/qemu-system-x86_64 -name us-vhost-vm1 \
+ -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 -monitor unix:/tmp/vm2_monitor.sock,server,nowait -netdev user,id=yinan,hostfwd=tcp:127.0.0.1:6005-:22 -device e1000,netdev=yinan \
+ -smp cores=1,sockets=1 -drive file=/home/osimg/ubuntu1910.img \
+ -chardev socket,id=char0,path=./vhost-net \
+ -netdev type=vhost-user,id=mynet1,chardev=char0,vhostforce,queues=2 \
+ -device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1,mrg_rxbuf=on,csum=on,gso=on,host_tso4=on,guest_tso4=on,mq=on,vectors=15 \
+ -vnc :10 -daemonize
+
+4. In vm, config the virtio-net device with ip and turn the kernel gro off::
+
+ ifconfig ens4 1.1.1.2 up # [ens3] is the name of virtio-net
+ ethtool -L ens4 combined 2
+ ethtool -K ens4 gro off
+
+5. Start iperf test, run iperf server at vm side and iperf client at host side, check throughput in log can get better performance than case 1::
+
+ Host side : taskset -c 35 ip netns exec ns1 iperf -c 1.1.1.2 -i 1 -t 60 -m -P 2
+ VM side: iperf -s
--
2.17.1
next reply other threads:[~2020-08-21 2:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-21 11:28 Yinan Wang [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-11-04 12:13 Yinan Wang
2020-11-11 3:23 ` Tu, Lijuan
2020-09-21 10:02 Yinan Wang
2020-10-12 7:59 ` Tu, Lijuan
2020-08-20 10:12 Yinan Wang
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=20200821112807.49222-1-yinan.wang@intel.com \
--to=yinan.wang@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).