Re: [PATCH v2] tcp: use alloc_large_system_hash() to allocate table_perturb

From: Eric Dumazet
Date: Thu Jun 09 2022 - 00:03:51 EST


On Tue, Jun 7, 2022 at 12:02 AM Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxxxx>
> ---
> v2:
> - Add Fixes tag and replace kvmalloc_array with alloc_large_system_hash suggested
> by Eric Dumazet.
>

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks.