Home
last modified time | relevance | path

Searched refs:n_buckets (Results 1 – 21 of 21) sorted by relevance

/dpdk/lib/table/
H A Drte_table_hash_key8.c65 uint32_t n_buckets; member
121 if ((params->n_buckets == 0) || in check_params_create()
122 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
143 uint32_t n_buckets, i; in rte_table_hash_create_key8_lru() local
166 n_buckets = rte_align32pow2( in rte_table_hash_create_key8_lru()
168 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_create_key8_lru()
198 f->n_buckets = n_buckets; in rte_table_hash_create_key8_lru()
211 for (i = 0; i < n_buckets; i++) { in rte_table_hash_create_key8_lru()
251 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_add_key8_lru()
314 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_delete_key8_lru()
[all …]
H A Drte_table_hash_key16.c69 uint32_t n_buckets; member
127 if ((params->n_buckets == 0) || in check_params_create()
128 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
151 uint32_t n_buckets, i; in rte_table_hash_create_key16_lru() local
174 n_buckets = rte_align32pow2( in rte_table_hash_create_key16_lru()
176 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_create_key16_lru()
205 f->n_buckets = n_buckets; in rte_table_hash_create_key16_lru()
221 for (i = 0; i < n_buckets; i++) { in rte_table_hash_create_key16_lru()
261 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_add_key16_lru()
327 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_delete_key16_lru()
[all …]
H A Drte_table_hash_key32.c69 uint32_t n_buckets; member
131 if ((params->n_buckets == 0) || in check_params_create()
132 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
155 uint32_t n_buckets, i; in rte_table_hash_create_key32_lru() local
178 n_buckets = rte_align32pow2( in rte_table_hash_create_key32_lru()
180 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_create_key32_lru()
209 f->n_buckets = n_buckets; in rte_table_hash_create_key32_lru()
229 for (i = 0; i < n_buckets; i++) { in rte_table_hash_create_key32_lru()
269 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_add_key32_lru()
425 f->n_buckets = p->n_buckets; in rte_table_hash_create_key32_ext()
[all …]
H A Drte_table_hash_lru.c55 uint32_t n_buckets; member
126 if ((params->n_buckets == 0) || in check_params_create()
127 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
150 uint32_t n_buckets, i; in rte_table_hash_lru_create() local
175 n_buckets = rte_align32pow2( in rte_table_hash_lru_create()
177 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_lru_create()
182 bucket_sz = RTE_CACHE_LINE_ROUNDUP(n_buckets * sizeof(struct bucket)); in rte_table_hash_lru_create()
216 t->n_buckets = n_buckets; in rte_table_hash_lru_create()
222 t->bucket_mask = t->n_buckets - 1; in rte_table_hash_lru_create()
251 for (i = 0; i < t->n_buckets; i++) { in rte_table_hash_lru_create()
H A Drte_swx_table_em.c251 uint32_t n_buckets; member
381 uint32_t key_size, key_data_size, n_buckets, n_buckets_ext, i; in __table_create() local
395 n_buckets = params->n_keys_max / KEYS_PER_BUCKET; in __table_create()
400 bucket_sz = CL(n_buckets * sizeof(struct bucket_extension)); in __table_create()
435 t->n_buckets = n_buckets; in __table_create()
489 bkt_id = input_sig & (t->n_buckets - 1); in table_add()
549 bkt_id = input_sig & (t->n_buckets - 1); in table_del()
600 bkt_id = input_sig & (t->n_buckets - 1); in table_lookup_unoptimized()
699 bkt_id = input_sig & (t->n_buckets - 1); in table_lookup()
H A Drte_table_hash_cuckoo.h41 uint32_t n_buckets; member
H A Drte_swx_table_learner.c271 size_t n_buckets; member
336 p->n_buckets = rte_align32pow2(params->n_keys_max); in table_params_get()
338 p->bucket_mask = p->n_buckets - 1; in table_params_get()
352 p->total_size = sizeof(struct table) + p->n_buckets * p->bucket_size; in table_params_get()
H A Drte_table_hash.h80 uint32_t n_buckets; member
H A Drte_table_hash_ext.c74 uint32_t n_buckets; member
149 if ((params->n_buckets == 0) || in check_params_create()
150 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
202 bucket_sz = RTE_CACHE_LINE_ROUNDUP(p->n_buckets * sizeof(struct bucket)); in rte_table_hash_ext_create()
238 t->n_buckets = p->n_buckets; in rte_table_hash_ext_create()
245 t->bucket_mask = t->n_buckets - 1; in rte_table_hash_ext_create()
/dpdk/drivers/mempool/bucket/
H A Drte_mempool_bucket.c224 unsigned int n_buckets) in bucket_dequeue_buckets() argument
227 unsigned int n_buckets_from_stack = RTE_MIN(n_buckets, cur_stack->top); in bucket_dequeue_buckets()
230 n_buckets -= n_buckets_from_stack; in bucket_dequeue_buckets()
237 while (n_buckets-- > 0) { in bucket_dequeue_buckets()
282 unsigned int n_buckets = n / bd->obj_per_bucket; in bucket_dequeue() local
283 unsigned int n_orphans = n - n_buckets * bd->obj_per_bucket; in bucket_dequeue()
290 (n_buckets * bd->obj_per_bucket), in bucket_dequeue()
296 if (likely(n_buckets > 0)) { in bucket_dequeue()
297 rc = bucket_dequeue_buckets(bd, obj_table, n_buckets); in bucket_dequeue()
300 obj_table + (n_buckets * in bucket_dequeue()
/dpdk/app/test/
H A Dtest_table_combined.c423 .n_buckets = 1 << 16, in test_table_hash8lru()
484 .n_buckets = 1 << 16, in test_table_hash16lru()
545 .n_buckets = 1 << 16, in test_table_hash32lru()
606 .n_buckets = 1 << 16, in test_table_hash8ext()
667 .n_buckets = 1 << 16, in test_table_hash16ext()
728 .n_buckets = 1 << 16, in test_table_hash32ext()
789 .n_buckets = 1 << 16, in test_table_hash_cuckoo_combined()
H A Dtest_table_tables.c650 .n_buckets = 1 << 10, in test_table_hash_lru_generic()
753 .n_buckets = 1 << 10, in test_table_hash_ext_generic()
915 .n_buckets = 1 << 16, in test_table_hash_cuckoo()
/dpdk/app/test-pipeline/
H A Dpipeline_hash.c150 .n_buckets = 1 << 22, in app_main_loop_worker_pipeline_hash()
161 .n_buckets = 1 << 22, in app_main_loop_worker_pipeline_hash()
/dpdk/examples/ip_pipeline/
H A Dpipeline.h122 uint32_t n_buckets; member
H A Dpipeline.c912 pp.hash.n_buckets = params->match.hash.n_buckets; in pipeline_table_create()
H A Dcli.c2159 if (parser_read_uint32(&p.match.hash.n_buckets, in cmd_pipeline_table()
/dpdk/drivers/net/softnic/
H A Drte_eth_softnic_pipeline.c938 pp.hash.n_buckets = params->match.hash.n_buckets; in softnic_pipeline_table_create()
H A Drte_eth_softnic_internals.h486 uint32_t n_buckets; member
H A Drte_eth_softnic_cli.c2852 if (softnic_parser_read_uint32(&p.match.hash.n_buckets, in cmd_pipeline_table()
/dpdk/doc/guides/prog_guide/
H A Dpacket_framework.rst314 *bucket_id = f_hash(key) % n_buckets;*
318 *bucket_id = f_hash(key) & (n_buckets - 1);*
320 considering *n_bits* as the number of bits set in *bucket_mask = n_buckets - 1*,
552 …| 1 | Bucket array | n_buckets (configurable) | 32 | Buckets…
833 …| 1 | Bucket array | n_buckets (configurable) | *8-byte key size:* | Buckets of t…
/dpdk/doc/guides/sample_app_ug/
H A Dip_pipeline.rst401 buckets <n_buckets>