]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix tcp_rearm_rto()
authorEric Dumazet <edumazet@google.com>
Thu, 18 May 2017 16:15:58 +0000 (09:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 17:20:31 +0000 (13:20 -0400)
commit1f65a67067e9cc555318dbc14c3b0e5ccd0543e7
tree07baefa636220a256a0db4f9ff8f2f2d7384a6db
parent046588a49bda6e1d04e355a7cdb6e4b5c66ac912
tcp: fix tcp_rearm_rto()

skbs in (re)transmit queue no longer have a copy of jiffies
at the time of the transmit : skb->skb_mstamp is now in usec unit,
with no correlation to tcp_jiffies32.

We have to convert rto from jiffies to usec, compute a time difference
in usec, then convert the delta to HZ units.

Fixes: feb0ef517dbf ("tcp: switch TCP TS option (RFC 7323) to 1ms clock")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c