From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 0505F68C5 for ; Fri, 5 May 2017 15:57:30 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4C0C43D975; Fri, 5 May 2017 13:57:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 4C0C43D975 Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jfreiman@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 4C0C43D975 Received: from virtlab417.ml3.eng.bos.redhat.com (virtlab417.ml3.eng.bos.redhat.com [10.19.176.175]) by smtp.corp.redhat.com (Postfix) with ESMTP id E405A82798; Fri, 5 May 2017 13:57:28 +0000 (UTC) From: Jens Freimann To: yuanhan.liu@linux.intel.com Cc: dev@dpdk.org Date: Fri, 5 May 2017 09:57:22 -0400 Message-Id: <1493992642-52756-12-git-send-email-jfreiman@redhat.com> In-Reply-To: <1493992642-52756-1-git-send-email-jfreiman@redhat.com> References: <1493992642-52756-1-git-send-email-jfreiman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 05 May 2017 13:57:29 +0000 (UTC) Subject: [dpdk-dev] [RFC PATCH 11/11] 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: , X-List-Received-Date: Fri, 05 May 2017 13:57:30 -0000 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 -- 1.8.3.1