]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: refresh skb timestamp at retransmit time
authorEric Dumazet <edumazet@google.com>
Tue, 10 May 2016 03:55:16 +0000 (20:55 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:22:03 +0000 (17:22 -0500)
commit02b79654a0954c5ca3da688eadb8e5c84066ca8c
treec2f06ebc0c799b88ea303b1fcb98bea2884faccd
parentd1c6e38047c14c729d64e771855ba1874fbfb644
tcp: refresh skb timestamp at retransmit time

Orabug: 25308087

[ Upstream commit 10a81980fc47e64ffac26a073139813d3f697b64 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 90eb6718b9db5c145f7c2d4a14df6a4b8d96e7b3)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
net/ipv4/tcp_output.c