Lines Matching refs:cache
747 mempool_cache_init(struct rte_mempool_cache *cache, uint32_t size) in mempool_cache_init() argument
749 cache->size = size; in mempool_cache_init()
750 cache->flushthresh = CALC_CACHE_FLUSHTHRESH(size); in mempool_cache_init()
751 cache->len = 0; in mempool_cache_init()
762 struct rte_mempool_cache *cache; in rte_mempool_cache_create() local
769 cache = rte_zmalloc_socket("MEMPOOL_CACHE", sizeof(*cache), in rte_mempool_cache_create()
771 if (cache == NULL) { in rte_mempool_cache_create()
777 mempool_cache_init(cache, size); in rte_mempool_cache_create()
779 rte_mempool_trace_cache_create(size, socket_id, cache); in rte_mempool_cache_create()
780 return cache; in rte_mempool_cache_create()
789 rte_mempool_cache_free(struct rte_mempool_cache *cache) in rte_mempool_cache_free() argument
791 rte_mempool_trace_cache_free(cache); in rte_mempool_cache_free()
792 rte_free(cache); in rte_mempool_cache_free()
1195 const struct rte_mempool_cache *cache; in mempool_audit_cache() local
1196 cache = &mp->local_cache[lcore_id]; in mempool_audit_cache()
1197 if (cache->len > RTE_DIM(cache->objs)) { in mempool_audit_cache()