diff options
| author | Menglong Dong <[email protected]> | 2024-10-03 08:22:31 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-10-07 23:01:39 +0000 |
| commit | 269084f748524fa1a3fb8eb530eb70f77e7c3e4a (patch) | |
| tree | e12f296346444b9ca90648a340c3f86b229df0b1 /net/ipv4/tcp_timer.c | |
| parent | hv_netvsc: Link queues to NAPIs (diff) | |
| download | kernel-269084f748524fa1a3fb8eb530eb70f77e7c3e4a.tar.gz kernel-269084f748524fa1a3fb8eb530eb70f77e7c3e4a.zip | |
net: tcp: refresh tcp_mstamp for compressed ack in timer
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 <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
| -rw-r--r-- | net/ipv4/tcp_timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index c3a7442332d4..b412ed88ccd9 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c @@ -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 { |
