]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[TCP]: Don't apply FIN exception to full TSO segments.
authorJohn Heffner <jheffner@psc.edu>
Wed, 14 Feb 2007 08:34:43 +0000 (09:34 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 14 Feb 2007 08:34:43 +0000 (09:34 +0100)
Signed-off-by: John Heffner <jheffner@psc.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv4/tcp_output.c

index 310f2e610582afdd1580a8289da7d5af3ea88a33..56aba0f0ba5092a5234d9163b9f666ff813ce6a3 100644 (file)
@@ -830,7 +830,8 @@ static inline unsigned int tcp_cwnd_test(struct tcp_sock *tp, struct sk_buff *sk
        u32 in_flight, cwnd;
 
        /* Don't be strict about the congestion window for the final FIN.  */
-       if (TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN)
+       if ((TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN) &&
+           tcp_skb_pcount(skb) == 1)
                return 1;
 
        in_flight = tcp_packets_in_flight(tp);