Home
last modified time | relevance | path

Searched refs:new_hashinfo (Results 1 – 1 of 1) sorted by relevance

/linux-6.6.21/net/ipv4/
Dinet_hashtables.c1258 struct inet_hashinfo *new_hashinfo; in inet_pernet_hashinfo_alloc() local
1261 new_hashinfo = kmemdup(hashinfo, sizeof(*hashinfo), GFP_KERNEL); in inet_pernet_hashinfo_alloc()
1262 if (!new_hashinfo) in inet_pernet_hashinfo_alloc()
1265 new_hashinfo->ehash = vmalloc_huge(ehash_entries * sizeof(struct inet_ehash_bucket), in inet_pernet_hashinfo_alloc()
1267 if (!new_hashinfo->ehash) in inet_pernet_hashinfo_alloc()
1270 new_hashinfo->ehash_mask = ehash_entries - 1; in inet_pernet_hashinfo_alloc()
1272 if (inet_ehash_locks_alloc(new_hashinfo)) in inet_pernet_hashinfo_alloc()
1276 INIT_HLIST_NULLS_HEAD(&new_hashinfo->ehash[i].chain, i); in inet_pernet_hashinfo_alloc()
1278 new_hashinfo->pernet = true; in inet_pernet_hashinfo_alloc()
1280 return new_hashinfo; in inet_pernet_hashinfo_alloc()
[all …]