Enable apps to use external memory as native
Get series with b4
b4 am [email protected]Versions newest first
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | eal: add flag to indicate non-EAL malloc heapslib/ lib/ lib/ +1 more | +23 | 0 replies | |
| 2/2 | eal: allow swapping of malloc heapslib/ lib/ lib/ | +60 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Stephen Hemminger |
|---|---|
| Series | Series-Acked-by |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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