Searched refs:hash_entries (Results 1 – 1 of 1) sorted by relevance
3476 static struct udp_table __net_init *udp_pernet_table_alloc(unsigned int hash_entries) in udp_pernet_table_alloc() argument3485 udptable->hash = vmalloc_huge(hash_entries * 2 * sizeof(struct udp_hslot), in udp_pernet_table_alloc()3490 udptable->hash2 = udptable->hash + hash_entries; in udp_pernet_table_alloc()3491 udptable->mask = hash_entries - 1; in udp_pernet_table_alloc()3492 udptable->log = ilog2(hash_entries); in udp_pernet_table_alloc()3494 for (i = 0; i < hash_entries; i++) { in udp_pernet_table_alloc()3526 unsigned int hash_entries; in udp_set_table() local3533 hash_entries = READ_ONCE(old_net->ipv4.sysctl_udp_child_hash_entries); in udp_set_table()3534 if (!hash_entries) in udp_set_table()3538 if (hash_entries < UDP_HTABLE_SIZE_MIN_PERNET) in udp_set_table()[all …]