]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/tcp_input.c
[TCP]: Fix fastpath_cnt_hint when GSO skb is partially ACKed
[linux-2.6-omap-h63xx.git] / net / ipv4 / tcp_input.c
index bbad2cdb74b7c18c0ae742be241857b126f06890..f893e90061ebfebe87ad359bd94c700db70b02d6 100644 (file)
@@ -2420,6 +2420,9 @@ static int tcp_tso_acked(struct sock *sk, struct sk_buff *skb,
                        __u32 dval = min(tp->fackets_out, packets_acked);
                        tp->fackets_out -= dval;
                }
+               /* hint's skb might be NULL but we don't need to care */
+               tp->fastpath_cnt_hint -= min_t(u32, packets_acked,
+                                              tp->fastpath_cnt_hint);
                tp->packets_out -= packets_acked;
 
                BUG_ON(tcp_skb_pcount(skb) == 0);