Re: [PATCH net-next v2] tcp: Use clamp() in htcp_alpha_update()
From: Eric Dumazet
Date: Mon Aug 05 2024 - 04:40:23 EST
On Sun, Aug 4, 2024 at 8:20 AM Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx> wrote:
>
> Using clamp instead of min(max()) is easier to read and it matches even
> better the comment just above it.
>
> It also reduces the size of the preprocessed files by ~ 2.5 ko.
> (see [1] for a discussion about it)
>
> $ ls -l net/ipv4/tcp_htcp*.i
> 5576024 27 juil. 10:19 net/ipv4/tcp_htcp.old.i
> 5573550 27 juil. 10:21 net/ipv4/tcp_htcp.new.i
>
> [1]: https://lore.kernel.org/all/23bdb6fc8d884ceebeb6e8b8653b8cfe@xxxxxxxxxxxxxxxx/
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>