]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: use alloc_large_system_hash() to allocate table_perturb
authorMuchun Song <songmuchun@bytedance.com>
Tue, 7 Jun 2022 07:02:14 +0000 (15:02 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 Jun 2022 04:11:05 +0000 (21:11 -0700)
commit424e5ec97f4e0a5e14bf9dc7bcc0b49b0ab611f9
treea232794a09252948f6444b0917c61d90fee5cacc
parent45b68efc4ae00c31125cc4855e73b6625504084c
tcp: use alloc_large_system_hash() to allocate table_perturb

In our server, there may be no high order (>= 6) memory since we reserve
lots of HugeTLB pages when booting.  Then the system panic.  So use
alloc_large_system_hash() to allocate table_perturb.

Fixes: 10c654c9aecf ("tcp: dynamically allocate the perturb table used by source ports")
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220607070214.94443-1-songmuchun@bytedance.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/inet_hashtables.c