Re: [dpdk-dev] [PATCH v2] eal: fix check when retrieving current cpu affinity

2019-02-21 Thread Rami Rosen
Reviewed-by: Rami Rosen בתאריך יום ג׳, 19 בפבר׳ 2019, 22:38, מאת David Marchand ‏< david.march...@redhat.com>: > pthread_getaffinity_np returns a >0 value when failing. > > This is mainly for the sake of correctness. > The only case where it could fail is when passing an incorrect cpuset > size

Re: [dpdk-dev] [PATCH v2] eal: fix check when retrieving current cpu affinity

2019-02-20 Thread Burakov, Anatoly
On 19-Feb-19 8:38 PM, David Marchand wrote: pthread_getaffinity_np returns a >0 value when failing. This is mainly for the sake of correctness. The only case where it could fail is when passing an incorrect cpuset size wrt to the kernel. Fixes: 2eba8d21f3c9 ("eal: restrict cores auto detection"

[dpdk-dev] [PATCH v2] eal: fix check when retrieving current cpu affinity

2019-02-19 Thread David Marchand
pthread_getaffinity_np returns a >0 value when failing. This is mainly for the sake of correctness. The only case where it could fail is when passing an incorrect cpuset size wrt to the kernel. Fixes: 2eba8d21f3c9 ("eal: restrict cores auto detection") Cc: sta...@dpdk.org Signed-off-by: David Mar