From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Wang, Zhihong" Subject: Re: [PATCH v4 2/2] vhost: Add VHOST PMD 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "ann.zhuangyanying@huawei.com" To: Tetsuya Mukawa , "dev@dpdk.org" , "Liu, Yuanhan" 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) In-Reply-To: <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > ---