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
..
2016-06-10 15:08:57 +02:00
2016-06-20 17:42:29 +02:00
2015-06-12 11:10:10 +02:00
2016-06-14 15:31:26 +02:00
2015-09-03 19:22:48 +02:00
2015-09-03 19:22:48 +02:00
2016-05-24 17:00:55 +02:00
2014-06-11 00:29:34 +02:00
2014-06-11 00:29:34 +02:00
2016-06-20 22:25:43 +02:00
2015-05-11 15:51:14 +02:00
2016-04-06 12:02:09 +02:00
2014-11-25 13:16:24 +01:00
2015-03-10 12:17:31 +01:00
2016-05-24 17:00:55 +02:00
2014-11-27 16:21:11 +01:00
2016-06-10 15:08:57 +02:00
2014-06-11 00:29:34 +02:00
2016-05-24 17:00:56 +02:00
2014-06-11 00:29:34 +02:00
2016-05-24 17:00:55 +02:00
2016-06-15 15:54:44 +02:00
2014-11-26 17:27:04 +01:00
2015-04-20 14:37:36 +02:00
2016-05-24 17:00:56 +02:00
2014-09-29 15:04:55 +02:00
2015-07-01 23:26:10 +02:00
2016-05-24 17:00:55 +02:00
2016-03-11 15:56:07 +01:00
2016-03-31 17:09:23 +02:00