summaryrefslogtreecommitdiff
path: root/drivers/net/Makefile
diff options
context:
space:
mode:
authorTetsuya Mukawa <mukawa@igel.co.jp>2016-03-21 14:45:08 +0900
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-03-25 18:56:44 +0100
commitee584e9710b9abd60ee9faef664e106dcea10085 (patch)
tree96b711c195cac39d99dc7d7df3d54d483b0a74ab /drivers/net/Makefile
parent89a28c2880a6c94d02bb3f299eeedae596607c54 (diff)
downloaddpdk-next-eventdev-ee584e9710b9abd60ee9faef664e106dcea10085.zip
dpdk-next-eventdev-ee584e9710b9abd60ee9faef664e106dcea10085.tar.gz
dpdk-next-eventdev-ee584e9710b9abd60ee9faef664e106dcea10085.tar.xz
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>
Diffstat (limited to 'drivers/net/Makefile')
-rw-r--r--drivers/net/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 612e85e..3386a67 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -53,4 +53,8 @@ DIRS-$(CONFIG_RTE_LIBRTE_VIRTIO_PMD) += virtio
DIRS-$(CONFIG_RTE_LIBRTE_VMXNET3_PMD) += vmxnet3
DIRS-$(CONFIG_RTE_LIBRTE_PMD_XENVIRT) += xenvirt
+ifeq ($(CONFIG_RTE_LIBRTE_VHOST),y)
+DIRS-$(CONFIG_RTE_LIBRTE_PMD_VHOST) += vhost
+endif # $(CONFIG_RTE_LIBRTE_VHOST)
+
include $(RTE_SDK)/mk/rte.subdir.mk