Skip to content

Enable apps to use external memory as native

Bruce Richardson dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 1 replyIn review

Changes in v3 from the cover letter

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

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2eal: add flag to indicate non-EAL malloc heapslib/eal/common/malloc_heap.c lib/eal/common/malloc_heap.h lib/eal/common/malloc_mp.c +1 more+23 -190 replies
2/2eal: allow swapping of malloc heapslib/eal/common/malloc_heap.c lib/eal/include/rte_malloc.h lib/eal/version.map+60 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchStephen Hemminger
SeriesSeries-Acked-by
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Enable apps to use external memory as native

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