aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r--net/ipv4/tcp_output.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 4522579aaca2..e265d1aeeb66 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -52,12 +52,8 @@ void tcp_mstamp_refresh(struct tcp_sock *tp)
52{ 52{
53 u64 val = tcp_clock_ns(); 53 u64 val = tcp_clock_ns();
54 54
55 if (val > tp->tcp_clock_cache) 55 tp->tcp_clock_cache = val;
56 tp->tcp_clock_cache = val; 56 tp->tcp_mstamp = div_u64(val, NSEC_PER_USEC);
57
58 val = div_u64(val, NSEC_PER_USEC);
59 if (val > tp->tcp_mstamp)
60 tp->tcp_mstamp = val;
61} 57}
62 58
63static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, 59static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,