examples/vhost: fix driver unregistering
authorOuyang Changchun <changchun.ouyang@intel.com>
Mon, 6 Jul 2015 02:26:53 +0000 (10:26 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 17 Jul 2015 13:09:42 +0000 (15:09 +0200)
commitc83d2d00796ee5c12647007886c7fa483f97b82c
tree4712a33b313e5ddc351f272017cf0cb50b442522
parent29c0f3c8979e5ce6381aa1d0022418c654264ba0
examples/vhost: fix driver unregistering

The following commit broke vhost sample when it runs in second time:
292959c71961acde0cda6e77e737bb0a4df1559c

It should call api to unregister vhost driver when sample exit/quit, then
the socket file will be removed(by calling unlink), and thus make vhost sample
work correctly in the second time startup.

Test report: http://dpdk.org/ml/archives/dev/2015-July/020896.html

Fixes: 292959c71961 ("vhost: cleanup unix socket")

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