| /linux/net/rxrpc/ |
| H A D | peer_object.c | 35 unsigned long hash_key; in rxrpc_peer_hash_key() local 39 hash_key = (unsigned long)local / __alignof__(*local); in rxrpc_peer_hash_key() 40 hash_key += srx->transport_type; in rxrpc_peer_hash_key() 41 hash_key += srx->transport_len; in rxrpc_peer_hash_key() 42 hash_key += srx->transport.family; in rxrpc_peer_hash_key() 46 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key() 52 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key() 64 hash_key += *p; in rxrpc_peer_hash_key() 66 _leave(" 0x%lx", hash_key); in rxrpc_peer_hash_key() 67 return hash_key; in rxrpc_peer_hash_key() [all …]
|
| H A D | ar-internal.h | 382 unsigned long hash_key; member
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_conn.c | 78 conn_tab_lock(struct ip_vs_rht *t, struct ip_vs_conn *cp, u32 hash_key, in conn_tab_lock() argument 87 idx = hash_key & t->mask; in conn_tab_lock() 96 if (!ip_vs_rht_same_table(t, hash_key)) { in conn_tab_lock() 103 idx = hash_key & t->mask; in conn_tab_lock() 118 head = t->buckets + (hash_key & t->mask); in conn_tab_lock() 134 hash_key_new = READ_ONCE(cp->hn0.hash_key); in conn_tab_lock() 135 hash_key_new2 = READ_ONCE(cp->hn1.hash_key); in conn_tab_lock() 137 if (hash_key != hash_key_new || in conn_tab_lock() 143 hash_key = hash_key_new; in conn_tab_lock() 181 return (u32)siphash_4u64(a, b, c, d, &t->hash_key); in ip_vs_conn_hashkey() [all …]
|
| H A D | ip_vs_ctl.c | 378 return jhash_2words(fwmark, af, (u32)t->hash_key.key[0]); in ip_vs_svc_fwm_hashval() 423 WRITE_ONCE(svc->hash_key, ip_vs_rht_build_hash_key(t, hash)); in ip_vs_svc_hash() 444 u32 hash_key; in ip_vs_svc_unhash() local 459 hash_key = READ_ONCE(svc->hash_key); in ip_vs_svc_unhash() 461 if (ip_vs_rht_same_table(t, hash_key)) { in ip_vs_svc_unhash() 462 head = t->buckets + (hash_key & t->mask); in ip_vs_svc_unhash() 465 hash_key2 = READ_ONCE(svc->hash_key); in ip_vs_svc_unhash() 467 if (hash_key != hash_key2) { in ip_vs_svc_unhash() 476 head = t->buckets + (hash_key & t->mask); in ip_vs_svc_unhash() 503 u32 hash, hash_key; in __ip_vs_service_find() local [all …]
|
| H A D | ip_vs_core.c | 220 get_random_bytes(&t->hash_key, sizeof(t->hash_key)); in ip_vs_rht_alloc() 296 return jhash_3words(v1, v2, v3, (u32)t->hash_key.key[0]); in ip_vs_rht_hash_linfo()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | mod_hdr.c | 56 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()
|
| H A D | mapping.c | 49 u32 hash_key; in mapping_add() local 53 hash_key = jhash(data, ctx->data_size, 0); in mapping_add() 54 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add() 64 hash_add(ctx->ht, &mi->node, hash_key); in mapping_add()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | timer_mim_reject.c | 54 int hash_key = HASH_KEY; in BPF_PROG() local 63 bpf_map_update_elem(inner_map, &hash_key, &init, 0); in BPF_PROG() 64 val = bpf_map_lookup_elem(inner_map, &hash_key); in BPF_PROG()
|
| H A D | timer_mim.c | 71 int hash_key = HASH_KEY; in BPF_PROG() local 77 bpf_map_update_elem(inner_map, &hash_key, &init, 0); in BPF_PROG() 78 val = bpf_map_lookup_elem(inner_map, &hash_key); in BPF_PROG()
|
| /linux/drivers/net/ethernet/netronome/nfp/flower/ |
| H A D | metadata.c | 18 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()
|
| /linux/drivers/net/ethernet/amazon/ena/ |
| H A D | ena_com.c | 1048 struct ena_admin_feature_rss_flow_hash_control *hash_key = in ena_com_hash_key_fill_default_key() local 1049 (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() 1055 hash_key->key_parts = ENA_ADMIN_RSS_KEY_PARTS; 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() 1068 if (unlikely(!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() 2576 cmd.control_buffer.length = sizeof(*rss->hash_key); in ena_com_set_hash_function() [all …]
|
| H A D | ena_com.h | 319 struct ena_admin_feature_rss_flow_hash_control *hash_key; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | eswitch_offloads_termtbl.c | 119 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()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | sample.c | 176 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()
|
| /linux/include/net/ |
| H A D | ip_fib.h | 559 siphash_aligned_key_t hash_key; in fib_multipath_hash_from_keys() local 563 fib_multipath_hash_construct_key(&hash_key, mp_seed); in fib_multipath_hash_from_keys() 565 return flow_hash_from_keys_seed(keys, &hash_key); in fib_multipath_hash_from_keys()
|
| H A D | ip_vs.h | 520 siphash_key_t hash_key; member 676 static inline bool ip_vs_rht_same_table(struct ip_vs_rht *t, u32 hash_key) in ip_vs_rht_same_table() argument 678 return !((t->table_id ^ hash_key) & IP_VS_RHT_TABLE_ID_MASK); in ip_vs_rht_same_table() 793 u32 hash_key; /* Key for the hash table */ member 920 u32 hash_key; /* Key for the hash table */ member
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
| H A D | hclge_comm_rss.h | 59 u8 hash_key[HCLGE_COMM_RSS_HASH_KEY_NUM]; member
|
| H A D | hclge_comm_rss.c | 406 memcpy(req->hash_key, in hclge_comm_set_rss_algo_key()
|
| /linux/drivers/net/ethernet/google/gve/ |
| H A D | gve_ethtool.c | 902 memcpy(rxfh->key, rss_config->hash_key, priv->rss_key_size); in gve_get_rss_config_cache() 933 memcpy(rss_config->hash_key, rxfh->key, priv->rss_key_size); in gve_set_rss_config_cache()
|
| /linux/net/openvswitch/ |
| H A D | flow_table.c | 646 const u32 *hash_key = (const u32 *)((const u8 *)key + range->start); in flow_hash() local 651 return jhash2(hash_key, hash_u32s, 0); in flow_hash()
|
| /linux/tools/perf/util/ |
| H A D | annotate.c | 220 long hash_key; in __symbol__inc_addr_samples() local 242 hash_key = offset << 16 | evsel->core.idx; in __symbol__inc_addr_samples() 243 if (!hashmap__find(src->samples, hash_key, &entry)) { in __symbol__inc_addr_samples() 248 if (hashmap__add(src->samples, hash_key, entry) < 0) in __symbol__inc_addr_samples()
|