numam-dpdk/lib/librte_eal
David Marchand b206376438 eal: fix check when retrieving current CPU affinity
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: 2eba8d21f3 ("eal: restrict cores auto detection")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
2019-03-07 16:37:14 +01:00
..
bsdapp eal/bsd: remove clean up of files at startup 2019-01-14 15:23:12 +01:00
common eal: fix check when retrieving current CPU affinity 2019-03-07 16:37:14 +01:00
linuxapp compat: merge compat library into EAL 2019-02-25 16:03:31 +01:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build build: improve libbsd dependency handling 2019-02-27 12:28:03 +01:00
rte_eal_version.map mem: allow usage of non-heap external memory in multiprocess 2018-12-20 18:14:55 +01:00