numam-dpdk/lib/eal/linux
Deepak Khandelwal 90bf3f89ed mem: skip attaching external memory in secondary process
Currently, EAL init in secondary processes will attach all fbarrays
in the memconfig to have access to the primary process's page tables.
However, fbarrays corresponding to external memory segments should
not be attached at initialization, because this will happen as part
of `rte_extmem_attach` [1] or `rte_malloc_heap_memory_attach` [2] calls.

1: https://doc.dpdk.org/api/rte__memory_8h.html#a2796da68de6825f8edf53759f8e4d230
2: https://doc.dpdk.org/api/rte__malloc_8h.html#af6360dea35bdf162feeb2b62cf149fd3

Fixes: ff3619d624 ("malloc: allow attaching to external memory chunks")
Cc: stable@dpdk.org

Suggested-by: Anatoly Burakov <anatoly.burakov@intel.com>
Signed-off-by: Deepak Khandelwal <deepak.khandelwal@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
2022-04-28 13:44:13 +02:00
..
include eal: add missing C++ guards 2022-02-22 14:47:49 +01:00
eal_alarm.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_cpuflags.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_debug.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_dev.c eal/linux: fix device monitor stop return 2022-03-07 19:21:18 +01:00
eal_hugepage_info.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_interrupts.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_lcore.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_log.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_memalloc.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_memory.c mem: skip attaching external memory in secondary process 2022-04-28 13:44:13 +02:00
eal_thread.c eal: factorize lcore main loop 2022-04-14 13:59:50 +02:00
eal_timer.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_vfio_mp_sync.c lib: remove unneeded header includes 2022-02-22 13:10:39 +01:00
eal_vfio.c vfio: drop fallback Linux implementation 2021-11-08 16:27:15 +01:00
eal_vfio.h vfio: cleanup the multiprocess sync handle 2022-02-11 19:49:22 +01:00
eal.c eal: factorize lcore main loop 2022-04-14 13:59:50 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00