examples/vhost: make a copy of virtio device id
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 23 May 2016 08:35:43 +0000 (16:35 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 07:00:00 +0000 (09:00 +0200)
commit7f262239ab501656e36de0f58f26a9e9f44a2d49
tree230ff6470ac604c4dde426f2291b8d9d7d009b59
parentc08a349006f7d26eb32152c34796532f5c7b046f
examples/vhost: make a copy of virtio device id

Make a copy of virtio device id (device_fh) from the virtio_net struct,
so that we could have less dependency on the virtio_net struct.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
examples/vhost/main.c
examples/vhost/main.h