Home
last modified time | relevance | path

Searched refs:buckets (Results 1 – 14 of 14) sorted by relevance

/net/netfilter/ipvs/
Dip_vs_sh.c70 struct ip_vs_sh_bucket buckets[IP_VS_SH_TAB_SIZE]; member
108 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get()
130 dest = rcu_dereference(s->buckets[ihash].dest); in ip_vs_sh_get_fallback()
145 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback()
172 b = &s->buckets[0]; in ip_vs_sh_reassign()
216 b = &s->buckets[0]; in ip_vs_sh_flush()
Dip_vs_dh.c64 struct ip_vs_dh_bucket buckets[IP_VS_DH_TAB_SIZE]; member
90 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get()
106 b = &s->buckets[0]; in ip_vs_dh_reassign()
140 b = &s->buckets[0]; in ip_vs_dh_flush()
/net/ceph/crush/
Dcrush.c111 if (map->buckets) { in crush_destroy()
114 if (map->buckets[b] == NULL) in crush_destroy()
116 crush_destroy_bucket(map->buckets[b]); in crush_destroy()
118 kfree(map->buckets); in crush_destroy()
Dmapper.c527 itemtype = map->buckets[-1-item]->type; in crush_choose_firstn()
540 in = map->buckets[-1-item]; in crush_choose_firstn()
564 map->buckets[-1-item], in crush_choose_firstn()
741 itemtype = map->buckets[-1-item]->type; in crush_choose_indep()
758 in = map->buckets[-1-item]; in crush_choose_indep()
778 map->buckets[-1-item], in crush_choose_indep()
865 if (!map->buckets[b]) in crush_init_workspace()
869 switch (map->buckets[b]->alg) { in crush_init_workspace()
877 v += map->buckets[b]->size * sizeof(__u32); in crush_init_workspace()
949 map->buckets[-1-curstep->arg1])) { in crush_do_rule()
[all …]
/net/sched/
Dsch_hhf.c128 struct wdrr_bucket buckets[WDRR_BUCKET_CNT]; member
355 bucket = &q->buckets[WDRR_BUCKET_FOR_HH]; in hhf_drop()
357 bucket = &q->buckets[WDRR_BUCKET_FOR_NON_HH]; in hhf_drop()
368 return bucket - q->buckets; in hhf_drop()
381 bucket = &q->buckets[idx]; in hhf_enqueue()
435 int weight = (bucket - q->buckets == WDRR_BUCKET_FOR_HH) ? in hhf_dequeue()
645 struct wdrr_bucket *bucket = q->buckets + i; in hhf_init()
/net/netfilter/
Dnft_set_hash.c460 u32 buckets; member
478 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_lookup()
498 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_get()
518 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_lookup_fast()
542 hash = reciprocal_scale(hash, priv->buckets); in nft_jhash()
624 for (i = 0; i < priv->buckets; i++) { in nft_hash_walk()
655 priv->buckets = nft_hash_buckets(desc->size); in nft_hash_init()
669 for (i = 0; i < priv->buckets; i++) { in nft_hash_destroy()
DKconfig1293 of limit buckets, based on your selection of source/destination
/net/openvswitch/
Dflow_table.c147 kvfree(ti->buckets); in __table_instance_destroy()
159 ti->buckets = kvmalloc_array(new_size, sizeof(struct hlist_head), in table_instance_alloc()
161 if (!ti->buckets) { in table_instance_alloc()
167 INIT_HLIST_HEAD(&ti->buckets[i]); in table_instance_alloc()
485 struct hlist_head *head = &ti->buckets[i]; in table_instance_flow_flush()
538 head = &ti->buckets[*bucket]; in ovs_flow_tbl_dump_next()
557 return &ti->buckets[hash & (ti->n_buckets - 1)]; in find_bucket()
590 struct hlist_head *head = &old->buckets[i]; in flow_table_copy_flows()
Dflow_table.h55 struct hlist_head *buckets; member
/net/core/
Dsock_map.c869 struct bpf_shtab_bucket *buckets; member
884 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket()
1153 htab->buckets = bpf_map_area_alloc(htab->buckets_num * in sock_hash_alloc()
1156 if (!htab->buckets) { in sock_hash_alloc()
1163 INIT_HLIST_HEAD(&htab->buckets[i].head); in sock_hash_alloc()
1164 raw_spin_lock_init(&htab->buckets[i].lock); in sock_hash_alloc()
1221 bpf_map_area_free(htab->buckets); in sock_hash_free()
1360 bucket = &htab->buckets[info->bucket_id]; in sock_hash_seq_find_next()
Dneighbour.c479 struct neighbour __rcu **buckets; in neigh_hash_alloc() local
486 buckets = kzalloc(size, GFP_ATOMIC); in neigh_hash_alloc()
488 buckets = (struct neighbour __rcu **) in neigh_hash_alloc()
491 kmemleak_alloc(buckets, size, 1, GFP_ATOMIC); in neigh_hash_alloc()
493 if (!buckets) { in neigh_hash_alloc()
497 ret->hash_buckets = buckets; in neigh_hash_alloc()
510 struct neighbour __rcu **buckets = nht->hash_buckets; in neigh_hash_free_rcu() local
513 kfree(buckets); in neigh_hash_free_rcu()
515 kmemleak_free(buckets); in neigh_hash_free_rcu()
516 free_pages((unsigned long)buckets, get_order(size)); in neigh_hash_free_rcu()
Dbpf_sk_storage.c684 b = &smap->buckets[bucket_id++]; in bpf_sk_storage_map_seq_find_next()
698 b = &smap->buckets[i]; in bpf_sk_storage_map_seq_find_next()
Ddev.c4554 if (likely(fl->buckets[old_flow])) in skb_flow_limit()
4555 fl->buckets[old_flow]--; in skb_flow_limit()
4557 if (++fl->buckets[new_flow] > (FLOW_LIMIT_HISTORY >> 1)) { in skb_flow_limit()
/net/ceph/
Dosdmap.c373 arg->ids_size != c->buckets[bucket_index]->size) in decode_choose_args()
398 if (!c->buckets[b]) in crush_finalize()
401 switch (c->buckets[b]->alg) { in crush_finalize()
411 c->working_size += c->buckets[b]->size * sizeof(__u32); in crush_finalize()
451 c->buckets = kcalloc(c->max_buckets, sizeof(*c->buckets), GFP_NOFS); in crush_decode()
452 if (c->buckets == NULL) in crush_decode()
466 c->buckets[i] = NULL; in crush_decode()
492 b = c->buckets[i] = kzalloc(size, GFP_NOFS); in crush_decode()
3006 b = c->buckets[i]; in get_immediate_parent()