[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070919085150.GB18492@gondor.apana.org.au>
Date: Wed, 19 Sep 2007 16:51:50 +0800
From: Herbert Xu <herbert.xu@...hat.com>
To: James Chapman <jchapman@...alix.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Michal Ostrowski <mostrows@...akeasy.net>,
Paul Mackerras <paulus@...ba.org>,
Toralf Förster <toralf.foerster@....de>,
netdev@...r.kernel.org
Subject: Re: [PATCH 3/3] [PPP] L2TP: Fix skb handling in pppol2tp_xmit
On Wed, Sep 19, 2007 at 09:43:49AM +0100, James Chapman wrote:
>
> >-discard:
> >- /* Free the new skb. Caller will free original skb. */
> >- if (skb2 != skb)
> >- kfree_skb(skb2);
> > abort:
> >- return 0;
> >+ /* Free the original skb */
> >+ kfree_skb(skb);
> >+ return 1;
> > }
>
> Shouldn't this return 0 in the error case and without the kfree_skb()?
> This lets ppp requeue the skb.
No. As I described in the changelog, the return value of 0
is only meaningful for ppp_async and ppp_sync. Returning 0
means that you're congested, not that there has been a
temporary error and the packet should be retried.
Retransmission should be left to the higher protocols.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists