]> 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)
commit9c5fdc98490eb51698fbcdb77d4cf640f7af4752
tree07baefa636220a256a0db4f9ff8f2f2d7384a6db
parent2f9bc51ca4a792dfd5d9ca7f6973114239e13b1b
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: dafcda9f5d0c ("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