Re: [PATCH] tcp: clarify comment for mdev_us in struct tcp_sock

From: Fernando Fernandez Mancera

Date: Thu Aug 06 2026 - 04:35:17 EST


On 8/5/26 3:19 PM, Ziran Zhang wrote:
The existing comment for mdev_us says "medium deviation", but this
term is inaccurate. The field stores the "mean deviation" of RTT,
as originally defined in Van Jacobson's paper "Congestion
Avoidance and Control", and it is scaled by 4 (<< 2) in the Linux
implementation.

Update the comment to reflect the correct terminology and storage
format.

Signed-off-by: Ziran Zhang <zhangcoder@xxxxxxxx>
Reviewed-by: Fernando Fernandez Mancera <fmancera@xxxxxxx>

Thanks!