numam-dpdk/lib/librte_mempool
David Hunt 449c49b93a mempool: support handler operations
Until now, the objects stored in a mempool were internally stored in a
ring. This patch introduces the possibility to register external handlers
replacing the ring.

The default behavior remains unchanged, but calling the new function
rte_mempool_set_ops_byname() right after rte_mempool_create_empty() allows
the user to change the handler that will be used when populating
the mempool.

This patch also adds a set of default ops (function callbacks) based
on rte_ring.

Signed-off-by: David Hunt <david.hunt@intel.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2016-06-24 11:01:05 +02:00
..
Makefile mempool: support handler operations 2016-06-24 11:01:05 +02:00
rte_mempool_ops.c mempool: support handler operations 2016-06-24 11:01:05 +02:00
rte_mempool_ring.c mempool: support handler operations 2016-06-24 11:01:05 +02:00
rte_mempool_version.map mempool: support handler operations 2016-06-24 11:01:05 +02:00
rte_mempool.c mempool: support handler operations 2016-06-24 11:01:05 +02:00
rte_mempool.h mempool: support handler operations 2016-06-24 11:01:05 +02:00