Lines Matching refs:hash_entries
3723 static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_entries) in udp_pernet_table_alloc() argument
3735 udptable->hash = vmalloc_huge(hash_entries * slot_size, in udp_pernet_table_alloc()
3740 udptable->hash2 = (void *)(udptable->hash + hash_entries); in udp_pernet_table_alloc()
3741 udptable->mask = hash_entries - 1; in udp_pernet_table_alloc()
3742 udptable->log = ilog2(hash_entries); in udp_pernet_table_alloc()
3744 for (i = 0; i < hash_entries; i++) { in udp_pernet_table_alloc()
3777 unsigned int hash_entries; in udp_set_table() local
3784 hash_entries = READ_ONCE(old_net->ipv4.sysctl_udp_child_hash_entries); in udp_set_table()
3785 if (!hash_entries) in udp_set_table()
3789 if (hash_entries < UDP_HTABLE_SIZE_MIN_PERNET) in udp_set_table()
3790 hash_entries = UDP_HTABLE_SIZE_MIN_PERNET; in udp_set_table()
3792 hash_entries = roundup_pow_of_two(hash_entries); in udp_set_table()
3794 udptable = udp_pernet_table_alloc(hash_entries); in udp_set_table()
3800 hash_entries); in udp_set_table()