]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: set timestamps for restored skb-s
authorAndrey Vagin <avagin@openvz.org>
Fri, 16 Aug 2013 15:04:36 +0000 (19:04 +0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 20:07:15 +0000 (13:07 -0700)
commit3950dc65d18e96867a91e8d6ac42f9d484a89a1a
tree3047a05b711692bb9da8504c26c54fe3229f22be
parent1efa09db7fea91f697f261174c1011fa16224749
tcp: set timestamps for restored skb-s

When the repair mode is turned off, the write queue seqs are
updated so that the whole queue is considered to be 'already sent.

The "when" field must be set for such skb. It's used in tcp_rearm_rto
for example. If the "when" field isn't set, the retransmit timeout can
be calculated incorrectly and a tcp connected can stop for two minutes
(TCP_RTO_MAX).

Acked-by: Pavel Emelyanov <xemul@parallels.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: James Morris <jmorris@namei.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c