mem: allow registering external memory areas
authorAnatoly Burakov <anatoly.burakov@intel.com>
Thu, 20 Dec 2018 15:32:40 +0000 (15:32 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 20 Dec 2018 17:14:55 +0000 (18:14 +0100)
commit950e8fb4e19441f154e01bbf8e6beacd55625ed8
treeed1a27a1e38515c2a1479bbba40ec680bc4949bd
parent39ff94e71cd5469a7796d4a52340afaa54bee16e
mem: allow registering external memory areas

The general use-case of using external memory is well covered by
existing external memory API's. However, certain use cases require
manual management of externally allocated memory areas, so this
memory should not be added to the heap. It should, however, be
added to DPDK's internal structures, so that API's like
``rte_virt2memseg`` would work on such external memory segments.

This commit adds such an API to DPDK. The new functions will allow
to register and unregister externally allocated memory areas, as
well as documentation for them.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
doc/guides/prog_guide/env_abstraction_layer.rst
doc/guides/rel_notes/release_19_02.rst
lib/librte_eal/common/eal_common_memory.c
lib/librte_eal/common/include/rte_memory.h
lib/librte_eal/rte_eal_version.map