numam-dpdk/lib/eal/freebsd
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/freebsd: add missing C++ include guards 2022-03-15 02:06:13 +01:00
eal_alarm_private.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
eal_alarm.c alarm: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
eal_cpuflags.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
eal_debug.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
eal_dev.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
eal_hugepage_info.c eal/freebsd: lock memory device to prevent conflicts 2021-10-02 16:30:16 +02:00
eal_interrupts.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
eal_lcore.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
eal_memalloc.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02: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 librte_ prefix from directory names 2021-04-21 14:04:09 +02: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