Home
last modified time | relevance | path

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

/net/openvswitch/
Dflow_table.c122 struct flex_array *buckets; in alloc_buckets() local
125 buckets = flex_array_alloc(sizeof(struct hlist_head), in alloc_buckets()
127 if (!buckets) in alloc_buckets()
130 err = flex_array_prealloc(buckets, 0, n_buckets, GFP_KERNEL); in alloc_buckets()
132 flex_array_free(buckets); in alloc_buckets()
138 flex_array_get(buckets, i)); in alloc_buckets()
140 return buckets; in alloc_buckets()
176 static void free_buckets(struct flex_array *buckets) in free_buckets() argument
178 flex_array_free(buckets); in free_buckets()
184 free_buckets(ti->buckets); in __table_instance_destroy()
[all …]
Dflow_table.h40 struct flex_array *buckets; member
/net/netfilter/ipvs/
Dip_vs_sh.c75 struct ip_vs_sh_bucket buckets[IP_VS_SH_TAB_SIZE]; member
112 struct ip_vs_dest *dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get()
134 dest = rcu_dereference(s->buckets[ihash].dest); in ip_vs_sh_get_fallback()
149 dest = rcu_dereference(s->buckets[hash].dest); in ip_vs_sh_get_fallback()
176 b = &s->buckets[0]; in ip_vs_sh_reassign()
220 b = &s->buckets[0]; in ip_vs_sh_flush()
Dip_vs_dh.c68 struct ip_vs_dh_bucket buckets[IP_VS_DH_TAB_SIZE]; member
94 return rcu_dereference(s->buckets[ip_vs_dh_hashkey(af, addr)].dest); in ip_vs_dh_get()
110 b = &s->buckets[0]; in ip_vs_dh_reassign()
144 b = &s->buckets[0]; in ip_vs_dh_flush()
/net/ceph/crush/
Dcrush.c115 if (map->buckets) { in crush_destroy()
118 if (map->buckets[b] == NULL) in crush_destroy()
120 crush_destroy_bucket(map->buckets[b]); in crush_destroy()
122 kfree(map->buckets); in crush_destroy()
Dmapper.c478 itemtype = map->buckets[-1-item]->type; in crush_choose_firstn()
491 in = map->buckets[-1-item]; in crush_choose_firstn()
513 map->buckets[-1-item], in crush_choose_firstn()
683 itemtype = map->buckets[-1-item]->type; in crush_choose_indep()
700 in = map->buckets[-1-item]; in crush_choose_indep()
718 map->buckets[-1-item], in crush_choose_indep()
839 map->buckets[-1-curstep->arg1])) { in crush_do_rule()
914 map->buckets[-1-w[i]], in crush_do_rule()
933 map->buckets[-1-w[i]], in crush_do_rule()
/net/sched/
Dsch_hhf.c127 struct wdrr_bucket buckets[WDRR_BUCKET_CNT]; member
354 bucket = &q->buckets[WDRR_BUCKET_FOR_HH]; in hhf_drop()
356 bucket = &q->buckets[WDRR_BUCKET_FOR_NON_HH]; in hhf_drop()
368 return bucket - q->buckets; in hhf_drop()
389 bucket = &q->buckets[idx]; in hhf_enqueue()
443 int weight = (bucket - q->buckets == WDRR_BUCKET_FOR_HH) ? in hhf_dequeue()
664 struct wdrr_bucket *bucket = q->buckets + i; in hhf_init()
/net/core/
Dneighbour.c323 struct neighbour __rcu **buckets; in neigh_hash_alloc() local
330 buckets = kzalloc(size, GFP_ATOMIC); in neigh_hash_alloc()
332 buckets = (struct neighbour __rcu **) in neigh_hash_alloc()
335 kmemleak_alloc(buckets, size, 1, GFP_ATOMIC); in neigh_hash_alloc()
337 if (!buckets) { in neigh_hash_alloc()
341 ret->hash_buckets = buckets; in neigh_hash_alloc()
354 struct neighbour __rcu **buckets = nht->hash_buckets; in neigh_hash_free_rcu() local
357 kfree(buckets); in neigh_hash_free_rcu()
359 kmemleak_free(buckets); in neigh_hash_free_rcu()
360 free_pages((unsigned long)buckets, get_order(size)); in neigh_hash_free_rcu()
Ddev.c3542 if (likely(fl->buckets[old_flow])) in skb_flow_limit()
3543 fl->buckets[old_flow]--; in skb_flow_limit()
3545 if (++fl->buckets[new_flow] > (FLOW_LIMIT_HISTORY >> 1)) { in skb_flow_limit()
/net/ceph/
Dosdmap.c189 c->buckets = kcalloc(c->max_buckets, sizeof(*c->buckets), GFP_NOFS); in crush_decode()
190 if (c->buckets == NULL) in crush_decode()
204 c->buckets[i] = NULL; in crush_decode()
231 b = c->buckets[i] = kzalloc(size, GFP_NOFS); in crush_decode()
/net/netfilter/
DKconfig1139 of limit buckets, based on your selection of source/destination