/net/netfilter/ipvs/ |
D | ip_vs_sh.c | 70 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()
|
D | ip_vs_dh.c | 64 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/ |
D | crush.c | 111 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()
|
D | mapper.c | 527 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() 948 map->buckets[-1-curstep->arg1])) { in crush_do_rule() [all …]
|
/net/sched/ |
D | sch_hhf.c | 128 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() 642 struct wdrr_bucket *bucket = q->buckets + i; in hhf_init()
|
/net/netfilter/ |
D | nft_set_hash.c | 474 u32 buckets; member 493 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_lookup() 513 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_get() 534 hash = reciprocal_scale(hash, priv->buckets); in nft_hash_lookup_fast() 558 hash = reciprocal_scale(hash, priv->buckets); in nft_jhash() 640 for (i = 0; i < priv->buckets; i++) { in nft_hash_walk() 671 priv->buckets = nft_hash_buckets(desc->size); in nft_hash_init() 685 for (i = 0; i < priv->buckets; i++) { in nft_hash_destroy()
|
D | Kconfig | 1340 of limit buckets, based on your selection of source/destination
|
/net/openvswitch/ |
D | flow_table.c | 147 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()
|
D | flow_table.h | 55 struct hlist_head *buckets; member
|
/net/core/ |
D | sock_map.c | 841 struct bpf_shtab_bucket *buckets; member 856 return &htab->buckets[hash & (htab->buckets_num - 1)]; in sock_hash_select_bucket() 1109 htab->buckets = bpf_map_area_alloc(htab->buckets_num * in sock_hash_alloc() 1112 if (!htab->buckets) { in sock_hash_alloc() 1118 INIT_HLIST_HEAD(&htab->buckets[i].head); in sock_hash_alloc() 1119 raw_spin_lock_init(&htab->buckets[i].lock); in sock_hash_alloc() 1176 bpf_map_area_free(htab->buckets); in sock_hash_free() 1315 bucket = &htab->buckets[info->bucket_id]; in sock_hash_seq_find_next()
|
D | dev.h | 20 u8 buckets[]; member
|
D | neighbour.c | 535 struct neighbour __rcu **buckets; in neigh_hash_alloc() local 542 buckets = kzalloc(size, GFP_ATOMIC); in neigh_hash_alloc() 544 buckets = (struct neighbour __rcu **) in neigh_hash_alloc() 547 kmemleak_alloc(buckets, size, 1, GFP_ATOMIC); in neigh_hash_alloc() 549 if (!buckets) { in neigh_hash_alloc() 553 ret->hash_buckets = buckets; in neigh_hash_alloc() 566 struct neighbour __rcu **buckets = nht->hash_buckets; in neigh_hash_free_rcu() local 569 kfree(buckets); in neigh_hash_free_rcu() 571 kmemleak_free(buckets); in neigh_hash_free_rcu() 572 free_pages((unsigned long)buckets, get_order(size)); in neigh_hash_free_rcu()
|
D | bpf_sk_storage.c | 768 b = &smap->buckets[bucket_id++]; in bpf_sk_storage_map_seq_find_next() 782 b = &smap->buckets[i]; in bpf_sk_storage_map_seq_find_next()
|
D | dev.c | 4688 if (likely(fl->buckets[old_flow])) in skb_flow_limit() 4689 fl->buckets[old_flow]--; in skb_flow_limit() 4691 if (++fl->buckets[new_flow] > (FLOW_LIMIT_HISTORY >> 1)) { in skb_flow_limit()
|
/net/unix/ |
D | diag.c | 215 sk_for_each(sk, &net->unx.table.buckets[slot]) { in unix_diag_dump() 246 sk_for_each(sk, &net->unx.table.buckets[i]) { in unix_lookup_by_ino()
|
D | af_unix.c | 312 sk_add_node(sk, &net->unx.table.buckets[sk->sk_hash]); in __unix_insert_socket() 363 sk_for_each(s, &net->unx.table.buckets[hash]) { in __unix_find_socket_byname() 3273 for (sk = sk_head(&seq_file_net(seq)->unx.table.buckets[bucket]); in unix_from_bucket() 3623 net->unx.table.buckets = kvmalloc_array(UNIX_HASH_SIZE, in unix_net_init() 3626 if (!net->unx.table.buckets) in unix_net_init() 3631 INIT_HLIST_HEAD(&net->unx.table.buckets[i]); in unix_net_init() 3650 kvfree(net->unx.table.buckets); in unix_net_exit()
|
/net/ceph/ |
D | osdmap.c | 389 arg->ids_size != c->buckets[bucket_index]->size) in decode_choose_args() 414 if (!c->buckets[b]) in crush_finalize() 417 switch (c->buckets[b]->alg) { in crush_finalize() 427 c->working_size += c->buckets[b]->size * sizeof(__u32); in crush_finalize() 467 c->buckets = kcalloc(c->max_buckets, sizeof(*c->buckets), GFP_NOFS); in crush_decode() 468 if (c->buckets == NULL) in crush_decode() 482 c->buckets[i] = NULL; in crush_decode() 508 b = c->buckets[i] = kzalloc(size, GFP_NOFS); in crush_decode() 3041 b = c->buckets[i]; in get_immediate_parent()
|