mempool: introduce helpers for populate and required size
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 5 Nov 2019 15:37:04 +0000 (16:37 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 6 Nov 2019 10:11:13 +0000 (11:11 +0100)
commit23bdcedcd8caa0d268b615df3bdb08411f97856e
tree5feae3de8a567a011cd4c32543dad2bbda4976a6
parentb291e69423d0cbfdc34411460b641215da2e3fdc
mempool: introduce helpers for populate and required size

Introduce new functions that can used by mempool drivers to
calculate required memory size and to populate mempool.

For now, these helpers just replace the *_default() functions
without change. They will be enhanced in next commit.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
14 files changed:
drivers/mempool/bucket/Makefile
drivers/mempool/bucket/meson.build
drivers/mempool/bucket/rte_mempool_bucket.c
drivers/mempool/dpaa/dpaa_mempool.c
drivers/mempool/dpaa2/dpaa2_hw_mempool.c
drivers/mempool/octeontx/Makefile
drivers/mempool/octeontx/meson.build
drivers/mempool/octeontx/rte_mempool_octeontx.c
drivers/mempool/octeontx2/Makefile
drivers/mempool/octeontx2/meson.build
drivers/mempool/octeontx2/otx2_mempool_ops.c
lib/librte_mempool/rte_mempool.h
lib/librte_mempool/rte_mempool_ops_default.c
lib/librte_mempool/rte_mempool_version.map