Searched refs:hash_entries (Results 1 – 1 of 1) sorted by relevance
3723 static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_entries) in udp_pernet_table_alloc() argument3735 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() local3784 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()[all …]