[v3,0/2] Enable apps to use external memory as native

Message ID 20230918163206.1010611-1-bruce.richardson@intel.com (mailing list archive)
Series Enable apps to use external memory as native |


Bruce Richardson Sept. 18, 2023, 4:32 p.m. UTC
  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.

* 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.

* 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(-)