Re: [PATCH net-next v2] tcp: fix mdev comment in tcp_rtt_estimator()

From: Eric Dumazet

Date: Thu Sep 03 2026 - 06:34:32 EST


On Thu, Sep 3, 2026 at 12:13 PM Ziran Zhang <zhangcoder@xxxxxxxx> wrote:
>
> The old comment "mdev = 3/4 mdev + 1/4 new" only describes the
> common case. However, when RTT decreases and |rtt - srtt| > mdev/4,
> the code applies a finer gain of 1/32 instead of 1/4, resulting in:
> mdev = 31/32 mdev + 1/32 * new.
>
> Express both cases with a unified formula using variable
> gain g.
>
> Signed-off-by: Ziran Zhang <zhangcoder@xxxxxxxx>

We asked you to leave this comment as it is. Thank you.

pw-bot: rejected