From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id ADC3295DC for ; Mon, 16 Nov 2015 02:57:09 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 15 Nov 2015 17:57:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,299,1444719600"; d="scan'208";a="600807860" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 15 Nov 2015 17:57:09 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 15 Nov 2015 17:57:08 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.248.2; Sun, 15 Nov 2015 17:57:08 -0800 Received: from shsmsx152.ccr.corp.intel.com ([169.254.6.193]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.223]) with mapi id 14.03.0248.002; Mon, 16 Nov 2015 09:57:06 +0800 From: "Wang, Zhihong" To: Tetsuya Mukawa , "dev@dpdk.org" , "Liu, Yuanhan" Thread-Topic: [PATCH v4 2/2] vhost: Add VHOST PMD Thread-Index: AQHRHdNmiAgPAt4lFE+Cli1+2tFbRJ6d58+w Date: Mon, 16 Nov 2015 01:57:05 +0000 Message-ID: <8F6C2BD409508844A0EFC19955BE0941832E47@SHSMSX152.ccr.corp.intel.com> References: <1447046221-20811-3-git-send-email-mukawa@igel.co.jp> <1447392031-24970-1-git-send-email-mukawa@igel.co.jp> <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> In-Reply-To: <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "ann.zhuangyanying@huawei.com" Subject: Re: [dpdk-dev] [PATCH v4 2/2] vhost: Add VHOST PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2015 01:57:10 -0000 A quick glimpse and the bug is gone now :) Will have more test later on. > -----Original Message----- > From: Tetsuya Mukawa [mailto:mukawa@igel.co.jp] > Sent: Friday, November 13, 2015 1:21 PM > To: dev@dpdk.org; Wang, Zhihong ; Liu, Yuanhan > > Cc: Loftus, Ciara ; pmatilai@redhat.com; > ann.zhuangyanying@huawei.com; Richardson, Bruce > ; Xie, Huawei ; > thomas.monjalon@6wind.com; stephen@networkplumber.org; > rich.lane@bigswitch.com; Tetsuya Mukawa > Subject: [PATCH v4 2/2] vhost: Add VHOST PMD >=20 > The patch introduces a new PMD. This PMD is implemented as thin wrapper > of librte_vhost. It means librte_vhost is also needed to compile the PMD. > The vhost messages will be handled only when a port is started. So start > a port first, then invoke QEMU. >=20 > The PMD has 2 parameters. > - iface: The parameter is used to specify a path to connect to a > virtio-net device. > - queues: The parameter is used to specify the number of the queues > virtio-net device has. > (Default: 1) >=20 > Here is an example. > $ ./testpmd -c f -n 4 --vdev 'eth_vhost0,iface=3D/tmp/sock0,queues=3D1' -= - -i >=20 > To connect above testpmd, here is qemu command example. >=20 > $ qemu-system-x86_64 \ > > -chardev socket,id=3Dchr0,path=3D/tmp/sock0 \ > -netdev vhost-user,id=3Dnet0,chardev=3Dchr0,vhostforce,queues=3D1= \ > -device virtio-net-pci,netdev=3Dnet0 >=20 > Signed-off-by: Tetsuya Mukawa > ---