Lazaros Koromilas 4b5062755a mempool: allow user-owned cache
The mempool cache is only available to EAL threads as a per-lcore
resource. Change this so that the user can create and provide their own
cache on mempool get and put operations. This works with non-EAL threads
too. This commit introduces the new API calls:

    rte_mempool_cache_create(size, socket_id)
    rte_mempool_cache_free(cache)
    rte_mempool_cache_flush(cache, mp)
    rte_mempool_default_cache(mp, lcore_id)

Changes the API calls:

    rte_mempool_generic_put(mp, obj_table, n, cache, flags)
    rte_mempool_generic_get(mp, obj_table, n, cache, flags)

The cache-oblivious API calls use the per-lcore default local cache.

Signed-off-by: Lazaros Koromilas <l@nofutznetworks.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2016-06-30 11:28:10 +02:00
..
2015-05-12 15:13:15 +02:00
2015-12-07 04:59:56 +01:00
2016-04-01 18:56:27 +02:00
2016-04-11 23:56:34 +02:00
2016-04-11 23:56:34 +02:00
2016-04-11 23:56:34 +02:00
2015-12-15 13:50:42 +01:00
2015-12-15 13:50:42 +01:00
2015-04-29 18:34:58 +02:00
2015-04-29 18:34:58 +02:00