From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiwei Bie Subject: [RFC 11/29] add virtio 1.1 test guide Date: Wed, 21 Jun 2017 10:57:47 +0800 Message-ID: <1498013885-102779-12-git-send-email-tiwei.bie@intel.com> References: <1498013885-102779-1-git-send-email-tiwei.bie@intel.com> Cc: Yuanhan Liu To: dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 330C937A0 for ; Wed, 21 Jun 2017 04:59:34 +0200 (CEST) In-Reply-To: <1498013885-102779-1-git-send-email-tiwei.bie@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Yuanhan Liu Signed-off-by: Yuanhan Liu --- README-virtio-1.1 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 README-virtio-1.1 diff --git a/README-virtio-1.1 b/README-virtio-1.1 new file mode 100644 index 0000000..8af3eb3 --- /dev/null +++ b/README-virtio-1.1 @@ -0,0 +1,50 @@ +This branch implements a very rough virtio 1.1 prototpye: only the Tx path has +been implemented. And below are the test scripts and guidelines for testing: + +- build DPDK + + $ export RTE_SDK=/path/to/dpdk/src + $ export RTE_TARGET=x86_64-native-linuxapp-gcc + $ make install T=$RTE_TARGET + +- run host.sh + +- run virtio-user.sh + execute 'start' inside the pmd + execute 'show port stats all' (2 or more times) to see the throughtput. + +Note: both scripts should run on the same machine. + +You could also set "version_1_1=0" at virtio-user.sh to test +the difference between virtio 1.1 and virtio 0.95/1.0. + +--- +[yliu@yliu-dev ~]$ cat /tmp/host.sh +#!/bin/bash + +[ "$gdb" ] && gdb="gdb --args" + +rm -f vhost-net + +sudo $gdb $RTE_SDK/x86_64-native-linuxapp-gcc/app/testpmd \ + -c 0x5 -n 4 --socket-mem 2048,0 \ + --no-pci --file-prefix=vhost \ + --vdev 'net_vhost0,iface=/tmp/vhost-net' \ + -- \ + --forward-mode=rxonly \ + #-i + + +[yliu@yliu-dev ~]$ cat /tmp/virtio-user.sh +#!/bin/bash + +[ "$gdb" ] && gdb="gdb --args" + +sudo $gdb $RTE_SDK/x86_64-native-linuxapp-gcc/app/testpmd \ + -c 0x9 -n 4 --socket-mem 2048,0 \ + --no-pci --file-prefix=virtio \ + --vdev=net_virtio_user0,mac=52:54:00:00:00:15,path=/tmp/vhost-net,version_1_1=1 \ + -- \ + --forward-mode=txonly \ + --disable-hw-vlan --no-flush-rx \ + -i -- 2.7.4