numam-dpdk/lib/librte_eal/linux
Nick Connolly 9d42642e86 mem: fix allocation failure on non-NUMA kernel
Running dpdk-helloworld on Linux with lib numa present, but no kernel
support for NUMA (CONFIG_NUMA=n) causes rte_service_init() to fail with
EAL: error allocating rte services array.

alloc_seg() calls get_mempolicy to verify that the allocation
has happened on the correct socket, but receives ENOSYS from
the kernel and fails the allocation.

The allocated socket should only be verified if check_numa() is true.

Fixes: 2a96c88be8 ("mem: ease init in a docker container")
Cc: stable@dpdk.org

Signed-off-by: Nick Connolly <nick.connolly@mayadata.io>
Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
2020-10-13 14:02:18 +02:00
..
include mbuf: remove physical address alias 2020-09-19 00:25:37 +02:00
eal_alarm.c trace: add alarm tracepoints 2020-04-23 15:39:47 +02:00
eal_cpuflags.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_debug.c eal: move OS common debug functions to single file 2020-06-24 11:02:29 +02:00
eal_dev.c eal: hide internal device event structure 2020-09-21 10:12:10 +02:00
eal_hugepage_info.c eal: move OS common config objects 2020-06-30 00:02:53 +02:00
eal_interrupts.c eal/linux: use C11 atomics for interrupt status 2020-07-09 18:53:40 +02:00
eal_lcore.c eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal_log.c replace unused attributes 2020-04-16 18:30:58 +02:00
eal_memalloc.c mem: fix allocation failure on non-NUMA kernel 2020-10-13 14:02:18 +02:00
eal_memory.c eal: move OS common config objects 2020-06-30 00:02:53 +02:00
eal_thread.c eal/linux: truncate thread name 2020-07-11 15:03:47 +02:00
eal_timer.c eal: move OS common config objects 2020-06-30 00:02:53 +02:00
eal_vfio_mp_sync.c vfio: fix group descriptor check 2020-10-05 10:08:57 +02:00
eal_vfio.c vfio: fix group descriptor check 2020-10-05 10:08:57 +02:00
eal_vfio.h eal: move OS-specific sub-directories 2020-03-31 13:08:55 +02:00
eal.c eal: use C11 atomics for initialization check 2020-09-25 15:36:17 +02:00
meson.build eal: add telemetry as dependency 2020-05-11 00:37:16 +02:00