lkml.org 
[lkml]   [2004]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.6.9-rc1-mm5: TCP oopses
Date
David S. Miller <davem@davemloft.net> wrote:
>
> @@ -968,11 +972,17 @@
> return -EAGAIN;
>
> if (skb->len > cur_mss) {
> + int old_factor = TCP_SKB_CB(skb)->tso_factor;
> + int new_factor;
> +
> if (tcp_fragment(sk, skb, cur_mss))
> return -ENOMEM; /* We'll try again later. */
>
> /* New SKB created, account for it. */
> - tcp_inc_pcount(&tp->packets_out, skb);
> + new_factor = TCP_SKB_CB(skb)->tso_factor;
> + tcp_dec_pcount_explicit(&tp->packets_out,
> + new_factor - old_factor);

That should be tcp_inc_pcount_explicit.

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.073 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site