net: tcp: refactor the dbg message in tcp_retransmit_timer()
authorMenglong Dong <imagedong@tencent.com>
Fri, 11 Aug 2023 02:55:30 +0000 (10:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Aug 2023 11:21:38 +0000 (12:21 +0100)
commit031c44b7527aec2f22ddaae4bcd8b085ff810ec4
tree7a98005eb4c3cc91e5bfe987db7f8b6da28e072d
parente89688e3e97868451a5d05b38a9d2633d6785cd4
net: tcp: refactor the dbg message in tcp_retransmit_timer()

The debug message in tcp_retransmit_timer() is slightly wrong, because
they could be printed even if we did not receive a new ACK packet from
the remote peer.

Change it to probing zero-window, as it is a expected case now. The
description may be not correct.

Adding the duration since the last ACK we received, and the duration of
the retransmission, which are useful for debugging.

And the message now like this:

Probing zero-window on 127.0.0.1:9999/46946, seq=3737778959:3737791503, recv 209ms ago, lasting 209ms
Probing zero-window on 127.0.0.1:9999/46946, seq=3737778959:3737791503, recv 404ms ago, lasting 408ms
Probing zero-window on 127.0.0.1:9999/46946, seq=3737778959:3737791503, recv 812ms ago, lasting 1224ms

Signed-off-by: Menglong Dong <imagedong@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_timer.c