From patchwork Wed Jun 21 02:57:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiwei Bie X-Patchwork-Id: 25518 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 8EA0A7CBC; Wed, 21 Jun 2017 04:59:58 +0200 (CEST) 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) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP; 20 Jun 2017 19:59:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,367,1493708400"; d="scan'208";a="101830309" Received: from dpdk25.sh.intel.com ([10.67.111.75]) by orsmga002.jf.intel.com with ESMTP; 20 Jun 2017 19:59:33 -0700 From: Tiwei Bie To: dev@dpdk.org Cc: Yuanhan Liu Date: Wed, 21 Jun 2017 10:57:47 +0800 Message-Id: <1498013885-102779-12-git-send-email-tiwei.bie@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498013885-102779-1-git-send-email-tiwei.bie@intel.com> References: <1498013885-102779-1-git-send-email-tiwei.bie@intel.com> Subject: [dpdk-dev] [RFC 11/29] add virtio 1.1 test guide X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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