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

Burakov, Anatoly anatoly.burakov at intel.com
Wed Feb 20 17:02:00 CET 2019


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")
> Cc: stable at dpdk.org
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---

Reviewed-by: Anatoly Burakov <anatoly.burakov at intel.com>

-- 
Thanks,
Anatoly


More information about the stable mailing list