Home
last modified time | relevance | path

Searched refs:hash_func (Results 1 – 25 of 37) sorted by relevance

12

/dpdk/examples/pipeline/examples/
H A Dhash_func.cli5 # ./build/examples/dpdk-pipeline -l0-1 -- -s ./examples/pipeline/examples/hash_func.cli
13 pipeline codegen ./examples/pipeline/examples/hash_func.spec /tmp/hash_func.c
14 pipeline libbuild /tmp/hash_func.c /tmp/hash_func.so
30 pipeline PIPELINE0 build lib /tmp/hash_func.so io ./examples/pipeline/examples/ethdev.io numa 0
/dpdk/lib/hash/
H A Drte_fbk_hash.c155 if (params->hash_func != NULL) { in rte_fbk_hash_create()
156 ht->hash_func = params->hash_func; in rte_fbk_hash_create()
160 ht->hash_func = default_hash_func; in rte_fbk_hash_create()
H A Drte_fbk_hash.h53 rte_fbk_hash_fn hash_func; /**< The hash function. */ member
76 rte_fbk_hash_fn hash_func; /**< The hash function. */ member
96 return (ht->hash_func(key, ht->init_val) & ht->bucket_mask) << in rte_fbk_hash_get_bucket()
H A Drte_cuckoo_hash.h188 rte_hash_function hash_func; /**< Function used to calculate hash. */ member
H A Drte_hash.h86 rte_hash_function hash_func; /**< Primary Hash function used to calculate hash. */ member
H A Drte_cuckoo_hash.c457 h->hash_func = (params->hash_func == NULL) ? in rte_hash_create()
458 default_hash_func : params->hash_func; in rte_hash_create()
578 return h->hash_func(key, h->key_len, h->hash_func_init_val); in rte_hash_max_key_id()
/dpdk/lib/table/
H A Drte_swx_table_learner.c133 rte_swx_hash_func_t hash_func; member
229 p->hash_func = params->hash_func ? params->hash_func : rte_hash_crc; in table_params_get()
384 input_sig = t->params.hash_func(input_key, t->params.key_size, 0); in rte_swx_table_learner_lookup()
H A Drte_swx_table_em.c260 if (!params->hash_func) in __table_create()
261 t->params.hash_func = rte_hash_crc; in __table_create()
311 input_sig = t->params.hash_func(entry->key, t->params.key_size, 0); in table_add()
368 input_sig = t->params.hash_func(entry->key, t->params.key_size, 0); in table_del()
416 input_sig = t->params.hash_func(input_key, t->params.key_size, 0); in table_lookup_unoptimized()
516 input_sig = t->params.hash_func(input_key, t->params.key_size, 0); in table_lookup()
H A Drte_swx_table_learner.h85 rte_swx_hash_func_t hash_func; member
H A Drte_swx_table.h63 rte_swx_hash_func_t hash_func;
67 rte_swx_hash_func_t hash_func; global() member
H A Drte_table_hash_cuckoo.c111 .hash_func = p->f_hash, in rte_table_hash_cuckoo_create()
/dpdk/app/test/
H A Dtest_func_reentrancy.c237 .hash_func = (rte_hash_function)rte_jhash_32b, in hash_create_free()
305 .hash_func = rte_jhash_1word, in fbk_create_free()
H A Dtest_hash_multiwriter.c112 .hash_func = rte_jhash, in test_hash_multiwriter()
H A Dtest_hash_readwrite.c139 hash_params.hash_func = rte_jhash; in init_params()
141 hash_params.hash_func = rte_hash_crc; in init_params()
H A Dtest_rcu_qsbr_perf.c343 .hash_func = rte_hash_crc, in init_hash()
/dpdk/drivers/net/hns3/
H A Dhns3_rss.c996 hns3_update_rss_algo_key(struct hns3_hw *hw, uint8_t hash_func, in hns3_update_rss_algo_key() argument
1005 modify_algo = hash_func != RTE_ETH_HASH_FUNCTION_DEFAULT; in hns3_update_rss_algo_key()
1009 if (modify_algo && hash_func >= RTE_DIM(hns3_hash_func_map)) { in hns3_update_rss_algo_key()
1010 hns3_err(hw, "hash func (%u) is unsupported.", hash_func); in hns3_update_rss_algo_key()
1026 hash_algo = hns3_hash_func_map[hash_func]; in hns3_update_rss_algo_key()
/dpdk/lib/node/
H A Dudp4_input.c53 .hash_func = rte_jhash,
/dpdk/drivers/net/ena/base/
H A Dena_com.c1102 return ena_dev->rss.hash_func; in ena_com_get_current_hash_function()
2771 if (!(get_resp.u.flow_hash_func.supported_func & BIT(rss->hash_func))) { in ena_com_set_hash_function()
2773 rss->hash_func); in ena_com_set_hash_function()
2784 cmd.u.flow_hash_func.selected_func = 1 << rss->hash_func; in ena_com_set_hash_function()
2803 rss->hash_func, ret); in ena_com_set_hash_function()
2849 old_func = rss->hash_func; in ena_com_fill_hash_function()
2850 rss->hash_func = func; in ena_com_fill_hash_function()
2855 rss->hash_func = old_func; in ena_com_fill_hash_function()
2878 rss->hash_func = ENA_FFS(get_resp.u.flow_hash_func.selected_func); in ena_com_get_hash_function()
2879 if (rss->hash_func) in ena_com_get_hash_function()
[all …]
H A Dena_com.h326 enum ena_admin_hash_functions hash_func; member
/dpdk/drivers/net/sfc/
H A Dsfc_tbl_meta_cache.c23 .hash_func = rte_jhash, in sfc_tbl_meta_cache_ctor()
/dpdk/lib/pipeline/
H A Drte_swx_pipeline_internal.h190 struct hash_func { struct
191 TAILQ_ENTRY(hash_func) node;
197 TAILQ_HEAD(hash_func_tailq, hash_func); argument
835 struct instr_hash_func hash_func; member
907 struct hash_func *hf;
979 struct hash_func *hf;
2553 uint32_t hash_func_id = ip->hash_func.hash_func_id; in __instr_hash_func_exec()
2554 uint32_t dst_offset = ip->hash_func.dst.offset; in __instr_hash_func_exec()
2555 uint32_t n_dst_bits = ip->hash_func.dst.n_bits; in __instr_hash_func_exec()
2556 uint32_t src_struct_id = ip->hash_func.src.struct_id; in __instr_hash_func_exec()
[all …]
H A Drte_swx_ctl.h243 rte_swx_hash_func_t hash_func; member
H A Drte_swx_pipeline.c1172 static struct hash_func *
1175 struct hash_func *elem; in hash_func_find()
1189 struct hash_func *f; in rte_swx_pipeline_hash_func_register()
1199 f = calloc(1, sizeof(struct hash_func)); in rte_swx_pipeline_hash_func_register()
1217 struct hash_func *func; in hash_func_build()
1246 struct hash_func *elem; in hash_func_free()
3081 struct hash_func *func; in instr_hash_translate()
3103 instr->hash_func.hash_func_id = (uint8_t)func->id; in instr_hash_translate()
3104 instr->hash_func.dst.offset = (uint8_t)dst->offset / 8; in instr_hash_translate()
3105 instr->hash_func.dst.n_bits = (uint8_t)dst->n_bits; in instr_hash_translate()
[all …]
/dpdk/examples/l3fwd/
H A Dl3fwd_em.c973 .hash_func = ipv4_hash_crc, in setup_hash()
981 .hash_func = ipv6_hash_crc, in setup_hash()
/dpdk/lib/ipsec/
H A Dipsec_sad.c298 hash_params.hash_func = DEFAULT_HASH_FUNC; in rte_ipsec_sad_create()

12