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