aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-10-20 12:57:38 +0000
committerDavid S. Miller <[email protected]>2023-10-23 08:35:00 +0000
commit99d679556d737a14391c68e562d94076c2983252 (patch)
tree4555e11a5056c5dd365bd872dc16a7c1a6b52cf4 /net/ipv4/tcp_timer.c
parenttcp: fix cookie_init_timestamp() overflows (diff)
downloadkernel-99d679556d737a14391c68e562d94076c2983252.tar.gz
kernel-99d679556d737a14391c68e562d94076c2983252.zip
tcp: add tcp_time_stamp_ms() helper
In preparation of adding usec TCP TS values, add tcp_time_stamp_ms() for contexts needing ms based values. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r--net/ipv4/tcp_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
index 0862b73dd3b5..63247c78dc13 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -422,7 +422,7 @@ static void tcp_update_rto_stats(struct sock *sk)
if (!icsk->icsk_retransmits) {
tp->total_rto_recoveries++;
- tp->rto_stamp = tcp_time_stamp(tp);
+ tp->rto_stamp = tcp_time_stamp_ms(tp);
}
icsk->icsk_retransmits++;
tp->total_rto++;