]> 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)
commit56cbae013d4947730f1a633f3f140f6c5ceb03bf
treea232794a09252948f6444b0917c61d90fee5cacc
parent35722ee9bef5f77ab2634d212b210e5db7fad06b
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: 42dfe912a0fc ("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