aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/tcp_output.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index e5ce0e1d13b7..ce7c4d9d9195 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -2351,21 +2351,6 @@ int __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb)
2351 2351
2352 tcp_retrans_try_collapse(sk, skb, cur_mss); 2352 tcp_retrans_try_collapse(sk, skb, cur_mss);
2353 2353
2354 /* Some Solaris stacks overoptimize and ignore the FIN on a
2355 * retransmit when old data is attached. So strip it off
2356 * since it is cheap to do so and saves bytes on the network.
2357 */
2358 if (skb->len > 0 &&
2359 (TCP_SKB_CB(skb)->tcp_flags & TCPHDR_FIN) &&
2360 tp->snd_una == (TCP_SKB_CB(skb)->end_seq - 1)) {
2361 if (!pskb_trim(skb, 0)) {
2362 /* Reuse, even though it does some unnecessary work */
2363 tcp_init_nondata_skb(skb, TCP_SKB_CB(skb)->end_seq - 1,
2364 TCP_SKB_CB(skb)->tcp_flags);
2365 skb->ip_summed = CHECKSUM_NONE;
2366 }
2367 }
2368
2369 /* Make a copy, if the first transmission SKB clone we made 2354 /* Make a copy, if the first transmission SKB clone we made
2370 * is still in somebody's hands, else make a clone. 2355 * is still in somebody's hands, else make a clone.
2371 */ 2356 */