aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/tcp_output.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index cbb83acd830a..94c80113df7e 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -1718,6 +1718,10 @@ static void tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *skb, int m
1718 BUG_ON(tcp_skb_pcount(skb) != 1 || 1718 BUG_ON(tcp_skb_pcount(skb) != 1 ||
1719 tcp_skb_pcount(next_skb) != 1); 1719 tcp_skb_pcount(next_skb) != 1);
1720 1720
1721 if (WARN_ON(tp->sacked_out &&
1722 (TCP_SKB_CB(next_skb)->seq == tp->highest_sack)))
1723 return;
1724
1721 /* Ok. We will be able to collapse the packet. */ 1725 /* Ok. We will be able to collapse the packet. */
1722 tcp_unlink_write_queue(next_skb, sk); 1726 tcp_unlink_write_queue(next_skb, sk);
1723 1727
@@ -1734,10 +1738,6 @@ static void tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *skb, int m
1734 /* Update sequence range on original skb. */ 1738 /* Update sequence range on original skb. */
1735 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(next_skb)->end_seq; 1739 TCP_SKB_CB(skb)->end_seq = TCP_SKB_CB(next_skb)->end_seq;
1736 1740
1737 if (WARN_ON(tp->sacked_out &&
1738 (TCP_SKB_CB(next_skb)->seq == tp->highest_sack)))
1739 return;
1740
1741 /* Merge over control information. */ 1741 /* Merge over control information. */
1742 flags |= TCP_SKB_CB(next_skb)->flags; /* This moves PSH/FIN etc. over */ 1742 flags |= TCP_SKB_CB(next_skb)->flags; /* This moves PSH/FIN etc. over */
1743 TCP_SKB_CB(skb)->flags = flags; 1743 TCP_SKB_CB(skb)->flags = flags;