Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/ck/include/
H A Dck_bitmap.h226 unsigned int n_buckets = dst->n_bits; in ck_bitmap_union() local
229 n_buckets = src->n_bits; in ck_bitmap_union()
231 n_buckets = CK_BITMAP_BLOCKS(n_buckets); in ck_bitmap_union()
232 for (n = 0; n < n_buckets; n++) { in ck_bitmap_union()
249 unsigned int n_buckets = dst->n_bits; in ck_bitmap_intersection() local
250 unsigned int n_intersect = n_buckets; in ck_bitmap_intersection()
255 n_buckets = CK_BITMAP_BLOCKS(n_buckets); in ck_bitmap_intersection()
262 for (; n < n_buckets; n++) in ck_bitmap_intersection()
300 unsigned int n_buckets = ck_bitmap_base(bitmap->n_bits) / in ck_bitmap_clear() local
303 for (i = 0; i < n_buckets; i++) in ck_bitmap_clear()
/f-stack/dpdk/lib/librte_table/
H A Drte_table_hash_key16.c71 uint32_t n_buckets; member
129 if ((params->n_buckets == 0) || in check_params_create()
130 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
153 uint32_t n_buckets, i; in rte_table_hash_create_key16_lru() local
176 n_buckets = rte_align32pow2( in rte_table_hash_create_key16_lru()
178 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_create_key16_lru()
207 f->n_buckets = n_buckets; in rte_table_hash_create_key16_lru()
223 for (i = 0; i < n_buckets; i++) { in rte_table_hash_create_key16_lru()
263 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_add_key16_lru()
329 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_delete_key16_lru()
[all …]
H A Drte_table_hash_key8.c67 uint32_t n_buckets; member
123 if ((params->n_buckets == 0) || in check_params_create()
124 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
145 uint32_t n_buckets, i; in rte_table_hash_create_key8_lru() local
168 n_buckets = rte_align32pow2( in rte_table_hash_create_key8_lru()
170 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_create_key8_lru()
200 f->n_buckets = n_buckets; in rte_table_hash_create_key8_lru()
213 for (i = 0; i < n_buckets; i++) { in rte_table_hash_create_key8_lru()
253 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_add_key8_lru()
316 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_delete_key8_lru()
[all …]
H A Drte_table_hash_key32.c71 uint32_t n_buckets; member
133 if ((params->n_buckets == 0) || in check_params_create()
134 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
157 uint32_t n_buckets, i; in rte_table_hash_create_key32_lru() local
180 n_buckets = rte_align32pow2( in rte_table_hash_create_key32_lru()
182 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_create_key32_lru()
211 f->n_buckets = n_buckets; in rte_table_hash_create_key32_lru()
231 for (i = 0; i < n_buckets; i++) { in rte_table_hash_create_key32_lru()
271 bucket_index = signature & (f->n_buckets - 1); in rte_table_hash_entry_add_key32_lru()
427 f->n_buckets = p->n_buckets; in rte_table_hash_create_key32_ext()
[all …]
H A Drte_table_hash_lru.c57 uint32_t n_buckets; member
128 if ((params->n_buckets == 0) || in check_params_create()
129 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
152 uint32_t n_buckets, i; in rte_table_hash_lru_create() local
177 n_buckets = rte_align32pow2( in rte_table_hash_lru_create()
179 n_buckets = RTE_MAX(n_buckets, p->n_buckets); in rte_table_hash_lru_create()
184 bucket_sz = RTE_CACHE_LINE_ROUNDUP(n_buckets * sizeof(struct bucket)); in rte_table_hash_lru_create()
218 t->n_buckets = n_buckets; in rte_table_hash_lru_create()
224 t->bucket_mask = t->n_buckets - 1; in rte_table_hash_lru_create()
253 for (i = 0; i < t->n_buckets; i++) { in rte_table_hash_lru_create()
H A Drte_swx_table_em.c252 uint32_t n_buckets; member
382 uint32_t key_size, key_data_size, n_buckets, n_buckets_ext, i; in __table_create() local
396 n_buckets = params->n_keys_max / KEYS_PER_BUCKET; in __table_create()
401 bucket_sz = CL(n_buckets * sizeof(struct bucket_extension)); in __table_create()
436 t->n_buckets = n_buckets; in __table_create()
492 bkt_id = input_sig & (t->n_buckets - 1); in table_add()
552 bkt_id = input_sig & (t->n_buckets - 1); in table_del()
603 bkt_id = input_sig & (t->n_buckets - 1); in table_lookup_unoptimized()
702 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_table_hash.h80 uint32_t n_buckets; member
H A Drte_table_hash_ext.c76 uint32_t n_buckets; member
151 if ((params->n_buckets == 0) || in check_params_create()
152 (!rte_is_power_of_2(params->n_buckets))) { in check_params_create()
204 bucket_sz = RTE_CACHE_LINE_ROUNDUP(p->n_buckets * sizeof(struct bucket)); in rte_table_hash_ext_create()
240 t->n_buckets = p->n_buckets; in rte_table_hash_ext_create()
247 t->bucket_mask = t->n_buckets - 1; in rte_table_hash_ext_create()
/f-stack/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()
/f-stack/dpdk/app/test/
H A Dtest_table_combined.c421 .n_buckets = 1 << 16, in test_table_hash8lru()
482 .n_buckets = 1 << 16, in test_table_hash16lru()
543 .n_buckets = 1 << 16, in test_table_hash32lru()
604 .n_buckets = 1 << 16, in test_table_hash8ext()
665 .n_buckets = 1 << 16, in test_table_hash16ext()
726 .n_buckets = 1 << 16, in test_table_hash32ext()
787 .n_buckets = 1 << 16, in test_table_hash_cuckoo_combined()
H A Dtest_table_tables.c647 .n_buckets = 1 << 10, in test_table_hash_lru_generic()
750 .n_buckets = 1 << 10, in test_table_hash_ext_generic()
912 .n_buckets = 1 << 16, in test_table_hash_cuckoo()
/f-stack/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()
/f-stack/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.c2161 if (parser_read_uint32(&p.match.hash.n_buckets, in cmd_pipeline_table()
/f-stack/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.h474 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()
/f-stack/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…
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dip_pipeline.rst401 buckets <n_buckets>