numam-dpdk/app
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
..
cmdline_test app/cmdline_test: add missing dependencies 2015-12-03 00:02:26 +01:00
pdump app/pdump: fix type casting of ring size 2016-06-27 16:50:24 +02:00
proc_info ethdev: remove name from extended statistic fetch 2016-06-16 18:12:00 +02:00
test mempool: allow user-owned cache 2016-06-30 11:28:10 +02:00
test-acl acl: fix division by float zero in test app 2016-04-27 17:41:46 +02:00
test-pipeline ethdev: use constants for link state 2016-04-01 21:38:34 +02:00
test-pmd mbuf: add NSH packet type 2016-06-23 21:39:42 +02:00
Makefile app/pdump: add tool for packet capturing 2016-06-16 23:40:21 +02:00