numam-dpdk/mk
Tetsuya Mukawa ee584e9710 vhost: add driver on top of the library
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@igel.co.jp>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>

Update for queue state event name:
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2016-03-25 18:56:44 +01:00
..
arch mk: support native build on TILE-Gx 2016-03-16 15:24:38 +01:00
exec-env mk: fix shared library dependencies on libm and librt 2016-03-13 20:27:07 +01:00
internal mk: fix error message 2016-03-03 11:36:32 +01:00
machine config: remove ARM NEON option 2016-03-24 17:46:58 +01:00
target/generic config: remove obsolete machine descriptions 2016-02-11 12:45:21 +01:00
toolchain mk: fix gcc-5 version on Suse 2016-03-23 11:00:14 +01:00
rte.app.mk vhost: add driver on top of the library 2016-03-25 18:56:44 +01:00
rte.bsdmodule.mk mk: fix bsd module build 2014-11-05 22:18:31 +01:00
rte.combinedlib.mk mk: fix linker script when re-building 2016-03-17 21:53:06 +01:00
rte.cpuflags.mk mk: improve ARM NEON detection 2016-03-24 17:46:58 +01:00
rte.extapp.mk mk, scripts: remove useless blank lines 2015-06-12 11:10:02 +02:00
rte.extlib.mk mk: remove ABI versioning for external library 2015-12-08 02:59:54 +01:00
rte.extobj.mk mk, scripts: remove useless blank lines 2015-06-12 11:10:02 +02:00
rte.extshared.mk mk: allow to build shared libraries 2014-02-26 11:01:13 +01:00
rte.extsubdir.mk mk: introduce rte.extsubdir.mk for projects with subdirectories 2014-05-16 13:28:21 +02:00
rte.gnuconfigure.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.hostapp.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.hostlib.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.install.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.lib.mk mk: replace the combined library with a linker script 2016-03-01 14:37:27 +01:00
rte.module.mk mk: quote KERNELCC to allow ccache build 2015-10-25 18:39:46 +01:00
rte.obj.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.sdkbuild.mk mk: replace the combined library with a linker script 2016-03-01 14:37:27 +01:00
rte.sdkconfig.mk version: switch to year.month numbers 2016-02-10 22:43:26 +01:00
rte.sdkdepdirs.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.sdkdoc.mk mk: reduce PDF build commands 2015-04-03 16:13:36 +02:00
rte.sdkexamples.mk mk: add "make examples" target in root makefile 2014-05-16 16:02:55 +02:00
rte.sdkgcov.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.sdkinstall.mk mk: fix examples install 2016-01-19 09:18:26 +01:00
rte.sdkroot.mk mk: split install rule 2015-12-06 15:41:04 +01:00
rte.sdktest.mk app/proc_info: rename binary with prefix 2015-12-06 15:41:05 +01:00
rte.shared.mk mk: fix link with CC 2014-12-17 22:54:20 +01:00
rte.subdir.mk remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte.vars.mk mk: stop on warning only in developer build 2016-03-03 11:33:14 +01:00