Lines Matching defs:hash_entries
3437 static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_entries)
3446 udptable->hash = vmalloc_huge(hash_entries * 2 * sizeof(struct udp_hslot),
3451 udptable->hash2 = udptable->hash + hash_entries;
3452 udptable->mask = hash_entries - 1;
3453 udptable->log = ilog2(hash_entries);
3455 for (i = 0; i < hash_entries; i++) {
3487 unsigned int hash_entries;
3494 hash_entries = READ_ONCE(old_net->ipv4.sysctl_udp_child_hash_entries);
3495 if (!hash_entries)
3499 if (hash_entries < UDP_HTABLE_SIZE_MIN_PERNET)
3500 hash_entries = UDP_HTABLE_SIZE_MIN_PERNET;
3502 hash_entries = roundup_pow_of_two(hash_entries);
3504 udptable = udp_pernet_table_alloc(hash_entries);
3510 hash_entries);