vhost: raise error on fdset-thread creation
authorTonghao Zhang <xiangxia.m.yue@gmail.com>
Fri, 23 Mar 2018 02:18:50 +0000 (19:18 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commit2db2d3220b1a167c99f08410a03574eef1a0c7c8
treea5084a5f9939dd8e22d857c8513c9ae6e171e0bb
parent30a701a53737a0b6f7953412cc3b3d36c1d49122
vhost: raise error on fdset-thread creation

When first call the 'rte_vhost_driver_start', the
fdset_event_dispatch thread should be created successfully.
Because the vhost uses it to poll socket events for vhost
server or clients. Without it, for example, vhost will not
get the connection event.

This patch returns err code directly when created not successful.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_vhost/socket.c