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

2019-02-19 Thread David Marchand
On Tue, Feb 19, 2019 at 12:40 PM Burakov, Anatoly wrote: > On 14-Feb-19 5:41 PM, David Marchand wrote: > > On Thu, Feb 14, 2019 at 5:44 PM Burakov, Anatoly > > mailto:anatoly.bura...@intel.com>> wrote: > > CC: stable? > > > > Not really sure about CCing stable for this. > > > > I did not get

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

2019-02-19 Thread Burakov, Anatoly
On 14-Feb-19 5:41 PM, David Marchand wrote: On Thu, Feb 14, 2019 at 5:44 PM Burakov, Anatoly mailto:anatoly.bura...@intel.com>> wrote: On 14-Feb-19 1:27 PM, David Marchand wrote: > pthread_getaffinity_np returns a >0 value when failing. > > This is mainly for the sake of c

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

2019-02-14 Thread David Marchand
On Thu, Feb 14, 2019 at 5:44 PM Burakov, Anatoly wrote: > On 14-Feb-19 1:27 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

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

2019-02-14 Thread Burakov, Anatoly
On 14-Feb-19 1:27 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] eal: fix check when retrieving current cpu affinity

2019-02-14 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") Signed-off-by: David Marchand --- lib/libr