vhost: add vhost-user client mode
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 6 May 2016 21:26:03 +0000 (05:26 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 07:47:07 +0000 (09:47 +0200)
commit64ab701c3d1e848aa36b4c4ef61a9dd8c3633651
tree393ccbd4e15c8b33d4a4a89351b8836022ac982a
parent9ebcd4f9c74ed5d873932be0e29590b9a13e48c7
vhost: add vhost-user client mode

Add a new paramter (flags) to rte_vhost_driver_register(). DPDK
vhost-user acts as client mode when RTE_VHOST_USER_CLIENT flag
is set.  The flags would also allow future extensions without
breaking the API (again).

The rest is straingfoward then: allocate a unix socket, and
bind/listen for server, connect for client.

This extension is for vhost-user only, therefore we simply quit
and report error when any flags are given for vhost-cuse.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
doc/guides/rel_notes/release_16_07.rst
drivers/net/vhost/rte_eth_vhost.c
examples/tep_termination/main.c
examples/vhost/main.c
lib/librte_vhost/rte_virtio_net.h
lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
lib/librte_vhost/vhost_user/vhost-net-user.c