Re: [PATCH v4 net-next] udp: introduce __sk_mem_schedule() usage

From: Eric Dumazet
Date: Wed Mar 08 2023 - 04:47:15 EST


On Wed, Mar 8, 2023 at 3:13 AM Jason Xing <kerneljasonxing@xxxxxxxxx> wrote:
>
> From: Jason Xing <kernelxing@xxxxxxxxxxx>
>
> Keep the accounting schema consistent across different protocols
> with __sk_mem_schedule(). Besides, it adjusts a little bit on how
> to calculate forward allocated memory compared to before. After
> applied this patch, we could avoid receive path scheduling extra
> amount of memory.
>
> Link: https://lore.kernel.org/lkml/20230221110344.82818-1-kerneljasonxing@xxxxxxxxx/
> Signed-off-by: Jason Xing <kernelxing@xxxxxxxxxxx>
>

Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>