mempool: notify memory area to pool
authorSantosh Shukla <santosh.shukla@caviumnetworks.com>
Sun, 1 Oct 2017 09:29:02 +0000 (14:59 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 6 Oct 2017 19:58:39 +0000 (21:58 +0200)
commit12b8cc1a7e868b1e4438d5eaeaf5a0d3129c869d
tree1c8bcd3fc92669f7dfa37d622aedb75c0f890860
parent56d5c1079e1c5aa6ddf811abfcbb37e926fa0bc3
mempool: notify memory area to pool

HW pool manager e.g. Octeontx SoC demands s/w to program start and end
address of pool. Currently, there is no such api in external mempool.
Introducing rte_mempool_ops_register_memory_area api which will let HW(pool
manager) to know when common layer selects hugepage:
For each hugepage - Notify its start/end address to HW pool manager.

Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.c
lib/librte_mempool/rte_mempool.h
lib/librte_mempool/rte_mempool_ops.c
lib/librte_mempool/rte_mempool_version.map