Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 25 of 81) sorted by relevance

1234

/dpdk/lib/mempool/
H A Drte_mempool.h358 #define RTE_MEMPOOL_CACHE_STAT_ADD(cache, name, n) ((cache)->stats.name += (n)) argument
360 #define RTE_MEMPOOL_CACHE_STAT_ADD(cache, name, n) do {} while (0) argument
1317 rte_mempool_cache_free(struct rte_mempool_cache *cache);
1353 rte_mempool_cache_flush(struct rte_mempool_cache *cache, in rte_mempool_cache_flush() argument
1356 if (cache == NULL) in rte_mempool_cache_flush()
1357 cache = rte_mempool_default_cache(mp, rte_lcore_id()); in rte_mempool_cache_flush()
1358 if (cache == NULL || cache->len == 0) in rte_mempool_cache_flush()
1360 rte_mempool_trace_cache_flush(cache, mp); in rte_mempool_cache_flush()
1361 rte_mempool_ops_enqueue_bulk(mp, cache->objs, cache->len); in rte_mempool_cache_flush()
1362 cache->len = 0; in rte_mempool_cache_flush()
[all …]
H A Drte_mempool_trace_fp.h50 uint32_t nb_objs, void *cache),
54 rte_trace_point_emit_ptr(cache);
60 uint32_t nb_objs, void *cache),
64 rte_trace_point_emit_ptr(cache);
70 uint32_t nb_objs, void *cache),
74 rte_trace_point_emit_ptr(cache);
80 uint32_t nb_objs, void *cache),
84 rte_trace_point_emit_ptr(cache);
107 RTE_TRACE_POINT_ARGS(void *cache, void *mempool),
108 rte_trace_point_emit_ptr(cache);
[all...]
H A Dmempool_trace.h110 struct rte_mempool_cache *cache),
113 rte_trace_point_emit_ptr(cache);
114 rte_trace_point_emit_u32(cache->len);
115 rte_trace_point_emit_u32(cache->flushthresh);
120 RTE_TRACE_POINT_ARGS(void *cache),
121 rte_trace_point_emit_ptr(cache);
H A Dmempool_trace_points.c58 lib.mempool.cache.free)
61 lib.mempool.default.cache)
67 lib.mempool.cache.flush)
H A Drte_mempool.c747 mempool_cache_init(struct rte_mempool_cache *cache, uint32_t size) in mempool_cache_init() argument
754 cache->size = size; in mempool_cache_init()
755 cache->flushthresh = CALC_CACHE_FLUSHTHRESH(size); in mempool_cache_init()
756 cache->len = 0; in mempool_cache_init()
767 struct rte_mempool_cache *cache; in rte_mempool_cache_create() local
774 cache = rte_zmalloc_socket("MEMPOOL_CACHE", sizeof(*cache), in rte_mempool_cache_create()
776 if (cache == NULL) { in rte_mempool_cache_create()
782 mempool_cache_init(cache, size); in rte_mempool_cache_create()
784 rte_mempool_trace_cache_create(size, socket_id, cache); in rte_mempool_cache_create()
785 return cache; in rte_mempool_cache_create()
[all …]
/dpdk/drivers/net/sfc/
H A Dsfc_tbl_meta_cache.c20 struct rte_hash *cache = NULL; in sfc_tbl_meta_cache_ctor() local
29 cache = rte_hash_create(&hash_params); in sfc_tbl_meta_cache_ctor()
30 if (cache == NULL) in sfc_tbl_meta_cache_ctor()
33 *ref_cache = cache; in sfc_tbl_meta_cache_ctor()
51 struct rte_hash *cache = *ref_cache; in sfc_tbl_meta_cache_dtor() local
56 if (cache == NULL) in sfc_tbl_meta_cache_dtor()
59 while (rte_hash_iterate(cache, &next_key, &next_meta, &iter) >= 0) in sfc_tbl_meta_cache_dtor()
62 rte_hash_free(cache); in sfc_tbl_meta_cache_dtor()
176 sfc_tbl_meta_cache_add(struct rte_hash *cache, efx_nic_t *enp, in sfc_tbl_meta_cache_add() argument
190 rc = rte_hash_add_key_data(cache, &table_id, meta); in sfc_tbl_meta_cache_add()
[all …]
H A Dsfc_tbl_meta.c22 rc = rte_hash_lookup_data(tables->meta.cache, (const void *)&table_id, in sfc_tbl_meta_lookup()
45 rc = sfc_tbl_meta_cache_ctor(&meta->cache); in sfc_tbl_meta_init()
49 rc = sfc_tbl_meta_cache_update(meta->cache, sa->nic); in sfc_tbl_meta_init()
51 sfc_tbl_meta_cache_dtor(&meta->cache); in sfc_tbl_meta_init()
64 if (meta->cache == NULL) in sfc_tbl_meta_fini()
70 sfc_tbl_meta_cache_dtor(&meta->cache); in sfc_tbl_meta_fini()
H A Dsfc_sw_stats.c332 uint64_t *res = &sw_stats->supp[sw_stat_idx].cache[qid]; in sfc_sw_stat_get_val()
365 sw_stats->supp[i].cache[qid] = values[i - group_start_idx]; in sfc_sw_stat_get_val()
494 uint64_t *cache = sa->sw_stats.cache; in sfc_sw_stats_clear_cache() local
497 memset(cache, 0xff, cache_count * sizeof(*cache)); in sfc_sw_stats_clear_cache()
746 uint64_t **cache = &sa->sw_stats.cache; in sfc_sw_xstats_configure() local
780 *cache = rte_realloc(*cache, cache_count * sizeof(**cache), 0); in sfc_sw_xstats_configure()
781 if (*cache == NULL) { in sfc_sw_xstats_configure()
786 stat_cache = *cache; in sfc_sw_xstats_configure()
792 sw_stats->supp[i].cache = stat_cache; in sfc_sw_xstats_configure()
800 rte_free(*cache); in sfc_sw_xstats_configure()
[all …]
H A Dsfc_tbl_meta_cache.h23 int sfc_tbl_meta_cache_update(struct rte_hash *cache, efx_nic_t *enp);
H A Dsfc_tbl_meta.h26 struct rte_hash *cache; member
/dpdk/examples/ipsec-secgw/
H A Dsad.h55 /* SAD cache is disabled */ in sa_cache_update()
81 struct ipsec_sad_cache *cache; in sad_lookup()
86 cache = &RTE_PER_LCORE(sad_cache); in sad_lookup()
101 cache_idx = SPI2IDX(spi, cache->mask); in sad_lookup()
104 cached_sa = (cache->mask != 0) ? in sad_lookup()
105 cache->v4[cache_idx] : NULL; in sad_lookup()
106 /* check SAD cache entry */ in sad_lookup()
109 /* cache hit */ in sad_lookup()
115 * cache miss in sad_lookup()
125 cached_sa = (cache in sad_lookup()
78 struct ipsec_sad_cache *cache; sad_lookup() local
[all...]
H A Dsad.c84 struct ipsec_sad_cache *cache; in ipsec_sad_lcore_cache_init() local
86 cache = &RTE_PER_LCORE(sad_cache); in ipsec_sad_lcore_cache_init()
92 cache->v4 = rte_zmalloc_socket(NULL, cache_mem_sz, in ipsec_sad_lcore_cache_init()
94 if (cache->v4 == NULL) in ipsec_sad_lcore_cache_init()
97 cache->v6 = rte_zmalloc_socket(NULL, cache_mem_sz, in ipsec_sad_lcore_cache_init()
99 if (cache->v6 == NULL) in ipsec_sad_lcore_cache_init()
102 cache->mask = cache_elem - 1; in ipsec_sad_lcore_cache_init()
/dpdk/drivers/net/mlx5/hws/
H A Dmlx5dr_pat_arg.c78 int mlx5dr_pat_init_pattern_cache(struct mlx5dr_pattern_cache **cache) in mlx5dr_pat_init_pattern_cache() argument
90 *cache = new_cache; in mlx5dr_pat_init_pattern_cache()
95 void mlx5dr_pat_uninit_pattern_cache(struct mlx5dr_pattern_cache *cache) in mlx5dr_pat_uninit_pattern_cache() argument
97 simple_free(cache); in mlx5dr_pat_uninit_pattern_cache()
130 mlx5dr_pat_find_cached_pattern(struct mlx5dr_pattern_cache *cache, in mlx5dr_pat_find_cached_pattern() argument
136 LIST_FOREACH(cached_pat, &cache->head, next) { in mlx5dr_pat_find_cached_pattern()
148 mlx5dr_pat_get_existing_cached_pattern(struct mlx5dr_pattern_cache *cache, in mlx5dr_pat_get_existing_cached_pattern() argument
154 cached_pattern = mlx5dr_pat_find_cached_pattern(cache, num_of_actions, actions); in mlx5dr_pat_get_existing_cached_pattern()
158 LIST_INSERT_HEAD(&cache->head, cached_pattern, next); in mlx5dr_pat_get_existing_cached_pattern()
166 mlx5dr_pat_add_pattern_to_cache(struct mlx5dr_pattern_cache *cache, in mlx5dr_pat_add_pattern_to_cache() argument
[all …]
/dpdk/drivers/common/mlx5/
H A Dmlx5_common_utils.c23 l_inconst->cache[MLX5_LIST_GLOBAL] = gc; in mlx5_list_init()
24 LIST_INIT(&l_inconst->cache[MLX5_LIST_GLOBAL]->h); in mlx5_list_init()
78 LIST_FIRST(&l_inconst->cache[lcore_index]->h); in __list_lookup()
112 if (!l_inconst->cache[i]) in _mlx5_list_lookup()
143 LIST_INSERT_HEAD(&l_inconst->cache[lcore_index]->h, lentry, next); in mlx5_list_cache_insert()
152 struct mlx5_list_cache *c = l_inconst->cache[lcore_index]; in __list_cache_clean()
180 if (unlikely(!l_inconst->cache[lcore_index])) { in _mlx5_list_register()
181 l_inconst->cache[lcore_index] = mlx5_malloc(0, in _mlx5_list_register()
184 if (!l_inconst->cache[lcore_index]) { in _mlx5_list_register()
188 l_inconst->cache[lcore_index]->inv_cnt = 0; in _mlx5_list_register()
[all …]
H A Dmlx5_common_mr.c409 if (mr_btree_insert(&share_cache->cache, &entry) < 0) in mlx5_mr_insert_cache()
475 lkey = mr_btree_lookup(&share_cache->cache, &idx, addr); in mlx5_mr_lookup_cache()
477 *entry = (*share_cache->cache.table)[idx]; in mlx5_mr_lookup_cache()
508 share_cache->cache.len = 1; in mlx5_mr_rebuild_cache()
610 struct mlx5_mr_btree cache = {0}; in mlx5_mr_expand_cache() local
616 ret = mlx5_mr_btree_init(&cache, size, socket); in mlx5_mr_expand_cache()
620 bt = &share_cache->cache; in mlx5_mr_expand_cache()
622 if (cache.size > bt->size) { in mlx5_mr_expand_cache()
623 rte_memcpy(cache.table, lkp_tbl, bt->len * sizeof(lkp_tbl[0])); in mlx5_mr_expand_cache()
624 RTE_SWAP(*bt, cache); in mlx5_mr_expand_cache()
[all …]
/dpdk/drivers/mempool/dpaa/
H A Ddpaa_mempool.c55 struct rte_mempool_cache *cache; in dpaa_mbuf_create_pool() local
128 cache = &mp->local_cache[lcore_id]; in dpaa_mbuf_create_pool()
130 lcore_id, cache->flushthresh, in dpaa_mbuf_create_pool()
131 (uint32_t)(cache->size + DPAA_MBUF_MAX_ACQ_REL)); in dpaa_mbuf_create_pool()
132 if (cache->flushthresh) in dpaa_mbuf_create_pool()
133 cache->flushthresh = cache->size + DPAA_MBUF_MAX_ACQ_REL; in dpaa_mbuf_create_pool()
/dpdk/app/test/
H A Dtest_mempool.c86 struct rte_mempool_cache *cache; in test_mempool_basic() local
90 cache = rte_mempool_cache_create(RTE_MEMPOOL_CACHE_MAX_SIZE, in test_mempool_basic()
92 if (cache == NULL) in test_mempool_basic()
96 cache = rte_mempool_default_cache(mp, rte_lcore_id()); in test_mempool_basic()
103 if (rte_mempool_generic_get(mp, &obj, 1, cache) < 0) in test_mempool_basic()
110 offset = use_external_cache ? 1 * cache->len : 0; in test_mempool_basic()
126 rte_mempool_generic_put(mp, &obj, 1, cache); in test_mempool_basic()
130 if (rte_mempool_generic_get(mp, &obj, 1, cache) < 0) in test_mempool_basic()
132 if (rte_mempool_generic_get(mp, &obj2, 1, cache) < 0) { in test_mempool_basic()
133 rte_mempool_generic_put(mp, &obj, 1, cache); in test_mempool_basic()
[all …]
/dpdk/drivers/bus/dpaa/include/
H A Dfsl_usd.h39 uint32_t cache; member
/dpdk/drivers/net/mana/
H A Dmr.c240 struct mana_mr_cache **cache) in mana_mr_btree_lookup() argument
247 *cache = NULL; in mana_mr_btree_lookup()
274 *cache = &table[base]; in mana_mr_btree_lookup()
/dpdk/drivers/net/mlx4/
H A Dmlx4_rxtx.h208 lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru, in mlx4_rx_addr2mr()
240 lkey = mlx4_mr_lookup_cache(mr_ctrl->cache, &mr_ctrl->mru, in mlx4_tx_mb2mr()
/dpdk/drivers/bus/dpaa/base/qbman/
H A Dprocess.c187 uint32_t cache; member
248 input.cache = portal->cache; in qman_allocate_raw_portal()
/dpdk/app/graph/examples/
H A Dl2fwd_pcap.cli12 mempool mempool0 size 8192 buffers 4000 cache 256 numa 0
H A Dl2fwd.cli12 mempool mempool0 size 8192 buffers 4000 cache 256 numa 0
/dpdk/examples/pipeline/examples/
H A Dl2fwd_pcap.cli21 mempool MEMPOOL0 meta 0 pkt 2176 pool 32K cache 256 numa 0
H A Dl2fwd_macswp_pcap.cli21 mempool MEMPOOL0 meta 0 pkt 2176 pool 32K cache 256 numa 0

1234