net: tcp: refresh tcp_mstamp for compressed ack in timer
authorMenglong Dong <menglong8.dong@gmail.com>
Thu, 3 Oct 2024 08:22:31 +0000 (16:22 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Oct 2024 23:01:39 +0000 (16:01 -0700)
For now, we refresh the tcp_mstamp for delayed acks and keepalives, but
not for the compressed ack in tcp_compressed_ack_kick().

I have not found out the effact of the tcp_mstamp when sending ack, but
we can still refresh it for the compressed ack to keep consistent.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241003082231.759759-1-dongml2@chinatelecom.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_timer.c

index c3a7442332d4926a6089812f789e89ee23081306..b412ed88ccd9a81a2689cf38f13899551b1078e3 100644 (file)
@@ -865,6 +865,7 @@ static enum hrtimer_restart tcp_compressed_ack_kick(struct hrtimer *timer)
                         * LINUX_MIB_TCPACKCOMPRESSED accurate.
                         */
                        tp->compressed_ack--;
+                       tcp_mstamp_refresh(tp);
                        tcp_send_ack(sk);
                }
        } else {