[dpdk-dev] [PATCH v2 1/2] vhost: make sure vhost fdset-thread created successfully

Maxime Coquelin maxime.coquelin at redhat.com
Fri Mar 30 10:03:52 CEST 2018



On 03/23/2018 03:18 AM, xiangxia.m.yue at gmail.com wrote:
> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> 
> 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 at gmail.com>
> Reviewed-by: Jianfeng Tan <jianfeng.tan at intel.com>
> ---
> v2:
> According to rte_vhost_driver_start doc, replace the err code
> of pthread_create with -1.
> ---
>   lib/librte_vhost/socket.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)

Applied to dpdk-next-virtio/master.

Thanks,
Maxime


More information about the dev mailing list