[PATCH v3 0/2] Enable apps to use external memory as native
Bruce Richardson
bruce.richardson at intel.com
Mon Sep 18 18:32:04 CEST 2023
Sometimes apps (or perhaps DPDK driver components) may want to allow
use of "external" i.e. non EAL allocated, memory as though it were
standard DPDK memory. This patchset provides the ability to do this,
by: firstly, adding an explicit flag to indicate non-EAL memory,
rather than relying on the socket_id implicitly, and then secondly,
allowing heaps to be swapped, so an external heap can be used as the
default heap for socket 0 or 1, etc.
V3:
* Expand to 2 patch set, adding patch to tag external memory
explicitly, before adding the swap function
* Add locks to improve thread safety of the swap opperation.
* Add additional notes to function to clarify usage.
V2:
* Fix doxygen comment issue on doc builds
Bruce Richardson (2):
eal: add flag to indicate non-EAL malloc heaps
eal: allow swapping of malloc heaps
lib/eal/common/malloc_heap.c | 46 ++++++++++++++++++++++++++++--------
lib/eal/common/malloc_heap.h | 1 +
lib/eal/common/malloc_mp.c | 5 ++--
lib/eal/common/rte_malloc.c | 14 ++++++-----
lib/eal/include/rte_malloc.h | 34 ++++++++++++++++++++++++++
lib/eal/version.map | 2 ++
6 files changed, 83 insertions(+), 19 deletions(-)
--
2.39.2
More information about the dev
mailing list