[dpdk-dev] [PATCH v11 2/2] vhost: Add VHOST PMD
Tetsuya Mukawa
mukawa at igel.co.jp
Tue Mar 15 06:35:51 CET 2016
On 2016/03/14 21:02, Bruce Richardson wrote:
> On Mon, Mar 07, 2016 at 11:07:14AM +0900, Tetsuya Mukawa wrote:
>> 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,mq=on
>>
>> Signed-off-by: Tetsuya Mukawa <mukawa at igel.co.jp>
>> Acked-by: Ferruh Yigit <ferruh.yigit at intel.com>
>> Acked-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
>> Acked-by: Rich Lane <rich.lane at bigswitch.com>
>> Tested-by: Rich Lane <rich.lane at bigswitch.com>
>> ---
>> MAINTAINERS | 5 +
>> config/common_base | 6 +
>> config/common_linuxapp | 1 +
>> doc/guides/nics/index.rst | 1 +
> This adds a new entry for vhost PMD into the index, but there is no vhost.rst
> file present in this patchset. Did you forget to add it?
Yes, it seems so. The file is only on my environment.
I will add it.
Thanks,
Tetsuya
>
>> doc/guides/rel_notes/release_16_04.rst | 4 +
>> drivers/net/Makefile | 4 +
>> drivers/net/vhost/Makefile | 62 ++
>> drivers/net/vhost/rte_eth_vhost.c | 916 ++++++++++++++++++++++++++++
>> drivers/net/vhost/rte_eth_vhost.h | 109 ++++
>> drivers/net/vhost/rte_pmd_vhost_version.map | 10 +
>> mk/rte.app.mk | 6 +
>> 11 files changed, 1124 insertions(+)
>> create mode 100644 drivers/net/vhost/Makefile
>> create mode 100644 drivers/net/vhost/rte_eth_vhost.c
>> create mode 100644 drivers/net/vhost/rte_eth_vhost.h
>> create mode 100644 drivers/net/vhost/rte_pmd_vhost_version.map
> <snip>
>
> /Bruce
>
More information about the dev
mailing list