Searched refs:hash_entries (Results 1 – 1 of 1) sorted by relevance
3752 static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_entries) in udp_pernet_table_alloc() argument3764 udptable->hash = vmalloc_huge(hash_entries * slot_size, in udp_pernet_table_alloc()3769 udptable->hash2 = (void *)(udptable->hash + hash_entries); in udp_pernet_table_alloc()3770 udptable->mask = hash_entries - 1; in udp_pernet_table_alloc()3771 udptable->log = ilog2(hash_entries); in udp_pernet_table_alloc()3773 for (i = 0; i < hash_entries; i++) { in udp_pernet_table_alloc()3806 unsigned int hash_entries; in udp_set_table() local3813 hash_entries = READ_ONCE(old_net->ipv4.sysctl_udp_child_hash_entries); in udp_set_table()3814 if (!hash_entries) in udp_set_table()3818 if (hash_entries < UDP_HTABLE_SIZE_MIN_PERNET) in udp_set_table()[all …]