Searched refs:n_buckets (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/kernel/bpf/ |
H A D | hashtab.c | 22 u32 n_buckets; /* number of hash buckets */ member in struct:bpf_htab 58 htab->n_buckets = roundup_pow_of_two(htab->map.max_entries); htab_map_alloc() 69 if (htab->n_buckets == 0 || htab_map_alloc() 70 htab->n_buckets > U32_MAX / sizeof(struct hlist_head)) htab_map_alloc() 73 htab->buckets = kmalloc_array(htab->n_buckets, sizeof(struct hlist_head), htab_map_alloc() 77 htab->buckets = vmalloc(htab->n_buckets * sizeof(struct hlist_head)); htab_map_alloc() 82 for (i = 0; i < htab->n_buckets; i++) htab_map_alloc() 105 return &htab->buckets[hash & (htab->n_buckets - 1)]; select_bucket() 181 i = hash & (htab->n_buckets - 1); htab_map_get_next_key() 186 for (; i < htab->n_buckets; i++) { htab_map_get_next_key() 315 for (i = 0; i < htab->n_buckets; i++) { delete_all_elements()
|
/linux-4.1.27/net/openvswitch/ |
H A D | flow_table.c | 119 static struct flex_array *alloc_buckets(unsigned int n_buckets) alloc_buckets() argument 125 n_buckets, GFP_KERNEL); alloc_buckets() 129 err = flex_array_prealloc(buckets, 0, n_buckets, GFP_KERNEL); alloc_buckets() 135 for (i = 0; i < n_buckets; i++) alloc_buckets() 199 ti->n_buckets = new_size; table_instance_alloc() 253 for (i = 0; i < ti->n_buckets; i++) { table_instance_destroy() 298 while (*bucket < ti->n_buckets) { ovs_flow_tbl_dump_next() 320 (hash & (ti->n_buckets - 1))); find_bucket() 351 for (i = 0; i < old->n_buckets; i++) { flow_table_copy_flows() 371 int n_buckets, bool ufid) table_instance_rehash() 375 new_ti = table_instance_alloc(n_buckets); table_instance_rehash() 586 return table_instance_rehash(ti, ti->n_buckets * 2, ufid); table_instance_expand() 699 if (table->count > ti->n_buckets) flow_key_insert() 702 new_ti = table_instance_rehash(ti, ti->n_buckets, false); flow_key_insert() 722 if (table->ufid_count > ti->n_buckets) { flow_ufid_insert() 370 table_instance_rehash(struct table_instance *ti, int n_buckets, bool ufid) table_instance_rehash() argument
|
H A D | flow_table.h | 41 unsigned int n_buckets; member in struct:table_instance
|
Completed in 62 milliseconds