]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitb17b8a20c5cd4a264601eacf1fda29008047d05a
tree07baefa636220a256a0db4f9ff8f2f2d7384a6db
parent4454e8661ffcb707ce1c405b6e112255629562da
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: 9a568de4818d ("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