[dpdk-dev] [PATCH v4 2/2] vhost: Add VHOST PMD

Wang, Zhihong zhihong.wang at intel.com
Mon Nov 16 02:57:05 CET 2015


A quick glimpse and the bug is gone now :)
Will have more test later on.

> -----Original Message-----
> From: Tetsuya Mukawa [mailto:mukawa at igel.co.jp]
> Sent: Friday, November 13, 2015 1:21 PM
> To: dev at dpdk.org; Wang, Zhihong <zhihong.wang at intel.com>; Liu, Yuanhan
> <yuanhan.liu at intel.com>
> Cc: Loftus, Ciara <ciara.loftus at intel.com>; pmatilai at redhat.com;
> ann.zhuangyanying at huawei.com; Richardson, Bruce
> <bruce.richardson at intel.com>; Xie, Huawei <huawei.xie at intel.com>;
> thomas.monjalon at 6wind.com; stephen at networkplumber.org;
> rich.lane at bigswitch.com; Tetsuya Mukawa <mukawa at igel.co.jp>
> Subject: [PATCH v4 2/2] vhost: Add VHOST PMD
> 
> 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.
> 
> 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)
> 
> Here is an example.
> $ ./testpmd -c f -n 4 --vdev 'eth_vhost0,iface=/tmp/sock0,queues=1' -- -i
> 
> To connect above testpmd, here is qemu command example.
> 
> $ qemu-system-x86_64 \
>         <snip>
>         -chardev socket,id=chr0,path=/tmp/sock0 \
>         -netdev vhost-user,id=net0,chardev=chr0,vhostforce,queues=1 \
>         -device virtio-net-pci,netdev=net0
> 
> Signed-off-by: Tetsuya Mukawa <mukawa at igel.co.jp>
> ---



More information about the dev mailing list