malloc: add function to check if socket is external
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 2 Oct 2018 13:34:48 +0000 (14:34 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Oct 2018 09:11:25 +0000 (11:11 +0200)
commit65ff37b105f72b40387473ccba478808fe655d2b
treec11789e62e8d1a94ebdd9e29fb73416f001b75dd
parente1fe3c2fab0949abc2509a7486b5c44998ba6540
malloc: add function to check if socket is external

An API is needed to check whether a particular socket ID belongs
to an internal or external heap. Prime user of this would be
mempool allocator, because normal assumptions of IOVA
contiguousness in IOVA as VA mode do not hold in case of
externally allocated memory.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/include/rte_malloc.h
lib/librte_eal/common/rte_malloc.c
lib/librte_eal/rte_eal_version.map
lib/librte_mempool/rte_mempool.c