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)
commite67b72b90b7e19a4be4d9c29f3feea6f58ab43f8
treea232794a09252948f6444b0917c61d90fee5cacc
parent487994ff75880569d32504d7e70da8b3328e0693
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: e9261476184b ("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