OSDN Git Service

tcp: refresh skb timestamp at retransmit time
authorEric Dumazet <edumazet@google.com>
Tue, 10 May 2016 03:55:16 +0000 (20:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2016 19:58:41 +0000 (15:58 -0400)
commit10a81980fc47e64ffac26a073139813d3f697b64
treef189b10589163b370cde6fe3f6ccd4833328f27a
parent3b0d190aeb21cf5aabf7157161468970296bb88c
tcp: refresh skb timestamp at retransmit time

In the very unlikely case __tcp_retransmit_skb() can not use the cloning
done in tcp_transmit_skb(), we need to refresh skb_mstamp before doing
the copy and transmit, otherwise TCP TS val will be an exact copy of
original transmit.

Fixes: 7faee5c0d514 ("tcp: remove TCP_SKB_CB(skb)->when")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c