Re: [dpdk-dev] [PATCH] vhost: fix error code check when creating pthread

2018-01-09 Thread Yuanhan Liu
On Fri, Dec 08, 2017 at 11:19:49AM +0100, Olivier Matz wrote: > On error, pthread_create() returns a positive number (errno). > Fix the test on the return value. > > Fixes: af1475918124 ("vhost: introduce API to start a specific driver") > Fixes: e623e0c6d8a5 ("vhost: add reconnect ability") > Cc:

Re: [dpdk-dev] [PATCH] vhost: fix error code check when creating pthread

2017-12-11 Thread Maxime Coquelin
On 12/08/2017 11:19 AM, Olivier Matz wrote: On error, pthread_create() returns a positive number (errno). Fix the test on the return value. Fixes: af1475918124 ("vhost: introduce API to start a specific driver") Fixes: e623e0c6d8a5 ("vhost: add reconnect ability") Cc: sta...@dpdk.org Signed-o

Re: [dpdk-dev] [PATCH] vhost: fix error code check when creating pthread

2017-12-11 Thread Jens Freimann
On Fri, Dec 08, 2017 at 11:19:49AM +0100, Olivier Matz wrote: On error, pthread_create() returns a positive number (errno). Fix the test on the return value. Fixes: af1475918124 ("vhost: introduce API to start a specific driver") Fixes: e623e0c6d8a5 ("vhost: add reconnect ability") Cc: sta...@dp

[dpdk-dev] [PATCH] vhost: fix error code check when creating pthread

2017-12-08 Thread Olivier Matz
On error, pthread_create() returns a positive number (errno). Fix the test on the return value. Fixes: af1475918124 ("vhost: introduce API to start a specific driver") Fixes: e623e0c6d8a5 ("vhost: add reconnect ability") Cc: sta...@dpdk.org Signed-off-by: Olivier Matz --- lib/librte_vhost/socke