examples/vhost: add vhost dev struct
authorHuawei Xie <huawei.xie@intel.com>
Mon, 20 Oct 2014 04:38:16 +0000 (12:38 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 23 Oct 2014 09:56:06 +0000 (11:56 +0200)
commite571e6b472a1e52eb39d4ded937ef426f7cd0be2
tree20b1f7ae2267b88e5f6c698a53f923626435ca9d
parentd476ed5d9b380acbe591e176490a912502cde621
examples/vhost: add vhost dev struct

Define vhost_dev data structure.
Change reference to virtio_dev to vhost_dev.
The vhost example use vdev data structure for switching related logic
and container for virtio_dev.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
examples/vhost/main.c
examples/vhost/main.h