examples/vhost: demonstrate the new generic APIs
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 07:23:00 +0000 (15:23 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Sat, 1 Apr 2017 08:49:47 +0000 (10:49 +0200)
commitca059fa5e290dcbb90029defc6b5699b6c0a828f
treeab49cddaa6318615b0932cab3821be613927acba
parent27052cd63f90c516737e4c617df3874197279765
examples/vhost: demonstrate the new generic APIs

Now DPDK vhost lib has been generic enough, that it can be used to
implement any vhost-user drivers.

For example, this patch implements a very simple vhost-user net driver,
mainly for demonstrating how to use those generic vhost APIs.

And when the --builtin-net-driver option is used, the example virtio-net
driver code will be invoked, instead of the one provided from the vhost
library.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
examples/vhost/Makefile
examples/vhost/main.c
examples/vhost/main.h
examples/vhost/virtio_net.c [new file with mode: 0644]