Home
last modified time | relevance | path

Searched refs:hash_key (Results 1 – 18 of 18) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dmod_hdr.c56 u32 hash_key) in mod_hdr_get() argument
60 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mod_hdr_get()
80 u32 hash_key; in mlx5e_mod_hdr_attach() local
88 hash_key = hash_mod_hdr_info(&key); in mlx5e_mod_hdr_attach()
91 mh = mod_hdr_get(tbl, &key, hash_key); in mlx5e_mod_hdr_attach()
115 hash_add(tbl->hlist, &mh->mod_hdr_hlist, hash_key); in mlx5e_mod_hdr_attach()
A Dtc_tun_encap.c656 uintptr_t hash_key) in mlx5e_encap_get() argument
663 encap_hlist, hash_key) { in mlx5e_encap_get()
676 uintptr_t hash_key) in mlx5e_decap_get() argument
683 hlist, hash_key) { in mlx5e_decap_get()
836 uintptr_t hash_key; in mlx5e_attach_encap() local
852 hash_key = hash_encap_info(&key); in mlx5e_attach_encap()
955 uintptr_t hash_key; in mlx5e_attach_decap() local
965 hash_key = hash_decap_info(&key); in mlx5e_attach_decap()
1165 u32 hash_key) in mlx5e_route_get() argument
1190 u32 hash_key; in mlx5e_route_get_create() local
[all …]
A Dmapping.c47 u32 hash_key; in mapping_add() local
51 hash_key = jhash(data, ctx->data_size, 0); in mapping_add()
52 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add()
62 hash_add(ctx->ht, &mi->node, hash_key); in mapping_add()
/drivers/net/ethernet/netronome/nfp/flower/
A Dmetadata.c18 u32 hash_key; member
211 unsigned long hash_key; in nfp_add_mask_table() local
225 hash_key = jhash(mask_data, mask_len, priv->mask_id_seed); in nfp_add_mask_table()
226 mask_entry->hash_key = hash_key; in nfp_add_mask_table()
228 hash_add(priv->mask_table, &mask_entry->link, hash_key); in nfp_add_mask_table()
238 unsigned long hash_key; in nfp_search_mask_table() local
240 hash_key = jhash(mask_data, mask_len, priv->mask_id_seed); in nfp_search_mask_table()
242 hash_for_each_possible(priv->mask_table, mask_entry, link, hash_key) in nfp_search_mask_table()
243 if (mask_entry->hash_key == hash_key) in nfp_search_mask_table()
/drivers/net/ethernet/amazon/ena/
A Dena_com.c1049 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key()
1051 netdev_rss_key_fill(&hash_key->key, sizeof(hash_key->key)); in ena_com_hash_key_fill_default_key()
1065 rss->hash_key = dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1078 if (rss->hash_key) in ena_com_hash_key_destroy()
1079 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), rss->hash_key, in ena_com_hash_key_destroy()
1081 rss->hash_key = NULL; in ena_com_hash_key_destroy()
2599 hash_key = rss->hash_key; in ena_com_fill_hash_function()
2625 hash_key->key_parts = key_len / sizeof(hash_key->key[0]); in ena_com_fill_hash_function()
2670 ena_dev->rss.hash_key; in ena_com_get_hash_key()
2673 memcpy(key, hash_key->key, in ena_com_get_hash_key()
[all …]
A Dena_com.h319 struct ena_admin_feature_rss_flow_hash_control *hash_key; member
/drivers/net/ethernet/mellanox/mlx5/core/
A Deswitch_offloads_termtbl.c119 u32 hash_key; in mlx5_eswitch_termtbl_get_create() local
123 hash_key = mlx5_eswitch_termtbl_hash(flow_act, dest); in mlx5_eswitch_termtbl_get_create()
125 termtbl_hlist, hash_key) { in mlx5_eswitch_termtbl_get_create()
151 hash_add(esw->offloads.termtbl_tbl, &tt->termtbl_hlist, hash_key); in mlx5_eswitch_termtbl_get_create()
A Den_tc.c966 u32 hash_key = hash_hairpin_info(peer_vhca_id, prio); in mlx5e_hairpin_get() local
969 hairpin_hlist, hash_key) { in mlx5e_hairpin_get()
/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_npc_hash.c84 u64 hash_key[3]; in npc_field_hash_calc() local
88 hash_key[0] = rsp.secret_key[1] << 31; in npc_field_hash_calc()
89 hash_key[0] |= rsp.secret_key[2]; in npc_field_hash_calc()
90 hash_key[1] = rsp.secret_key[1] >> 33; in npc_field_hash_calc()
91 hash_key[1] |= rsp.secret_key[0] << 31; in npc_field_hash_calc()
92 hash_key[2] = rsp.secret_key[0] >> 33; in npc_field_hash_calc()
430 u64 hash_key[2]; in rvu_exact_calculate_hash() local
438 hash_key[0] = key_in[0] << 31; in rvu_exact_calculate_hash()
439 hash_key[0] |= key_in[1]; in rvu_exact_calculate_hash()
440 hash_key[1] = key_in[0] >> 33; in rvu_exact_calculate_hash()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
A Dsample.c176 u32 hash_key; in sampler_get() local
180 hash_key = sampler_hash(sample_ratio, default_table_id); in sampler_get()
181 hash_for_each_possible(tc_psample->hashtbl, sampler, hlist, hash_key) in sampler_get()
200 hash_add(tc_psample->hashtbl, &sampler->hlist, hash_key); in sampler_get()
/drivers/net/ethernet/freescale/enetc/
A Denetc_pf_common.c346 u8 hash_key[ENETC_RSSHASH_KEY_SIZE] = {0}; in enetc_set_default_rss_key() local
349 get_random_bytes(hash_key, ENETC_RSSHASH_KEY_SIZE); in enetc_set_default_rss_key()
350 enetc_set_rss_key(pf->si, hash_key); in enetc_set_default_rss_key()
/drivers/md/dm-vdo/
A Dint-map.c136 static u64 hash_key(u64 key) in hash_key() function
299 u64 hash = hash_key(key) & 0xFFFFFFFF; in select_bucket()
/drivers/net/ethernet/hisilicon/hns3/hns3_common/
A Dhclge_comm_rss.h59 u8 hash_key[HCLGE_COMM_RSS_HASH_KEY_NUM]; member
A Dhclge_comm_rss.c406 memcpy(req->hash_key, in hclge_comm_set_rss_algo_key()
/drivers/net/ethernet/google/gve/
A Dgve_main.c195 rss_config->hash_key = kcalloc(priv->rss_key_size, in gve_alloc_rss_config_cache()
196 sizeof(rss_config->hash_key[0]), in gve_alloc_rss_config_cache()
198 if (!rss_config->hash_key) in gve_alloc_rss_config_cache()
210 kfree(rss_config->hash_key); in gve_alloc_rss_config_cache()
211 rss_config->hash_key = NULL; in gve_alloc_rss_config_cache()
219 kfree(rss_config->hash_key); in gve_free_rss_config_cache()
1780 netdev_rss_key_fill(rss_config->hash_key, priv->rss_key_size); in gve_init_rss_config()
A Dgve_ethtool.c867 memcpy(rxfh->key, rss_config->hash_key, priv->rss_key_size); in gve_get_rss_config_cache()
898 memcpy(rss_config->hash_key, rxfh->key, priv->rss_key_size); in gve_set_rss_config_cache()
A Dgve.h780 u8 *hash_key; member
A Dgve_adminq.c1415 hash_key_to_config = priv->rss_config.hash_key; in gve_adminq_configure_rss()

Completed in 63 milliseconds