diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 181b70ebd964..541f26a67ba2 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1188,13 +1188,6 @@ new_segment: | |||
1188 | goto wait_for_memory; | 1188 | goto wait_for_memory; |
1189 | 1189 | ||
1190 | /* | 1190 | /* |
1191 | * All packets are restored as if they have | ||
1192 | * already been sent. | ||
1193 | */ | ||
1194 | if (tp->repair) | ||
1195 | TCP_SKB_CB(skb)->when = tcp_time_stamp; | ||
1196 | |||
1197 | /* | ||
1198 | * Check whether we can use HW checksum. | 1191 | * Check whether we can use HW checksum. |
1199 | */ | 1192 | */ |
1200 | if (sk->sk_route_caps & NETIF_F_ALL_CSUM) | 1193 | if (sk->sk_route_caps & NETIF_F_ALL_CSUM) |
@@ -1203,6 +1196,13 @@ new_segment: | |||
1203 | skb_entail(sk, skb); | 1196 | skb_entail(sk, skb); |
1204 | copy = size_goal; | 1197 | copy = size_goal; |
1205 | max = size_goal; | 1198 | max = size_goal; |
1199 | |||
1200 | /* All packets are restored as if they have | ||
1201 | * already been sent. skb_mstamp isn't set to | ||
1202 | * avoid wrong rtt estimation. | ||
1203 | */ | ||
1204 | if (tp->repair) | ||
1205 | TCP_SKB_CB(skb)->sacked |= TCPCB_REPAIRED; | ||
1206 | } | 1206 | } |
1207 | 1207 | ||
1208 | /* Try to append data to the end of skb. */ | 1208 | /* Try to append data to the end of skb. */ |