netdev
[Top] [All Lists]

Re: Set truesize in pskb_expand_head

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: Re: Set truesize in pskb_expand_head
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Sep 2004 07:29:53 +1000
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20040927122700.4696e416.davem@xxxxxxxxxxxxx>
References: <20040924232053.GA7807@xxxxxxxxxxxxxxxxxxx> <20040924163328.7597352c.davem@xxxxxxxxxxxxx> <20040924233555.GA7962@xxxxxxxxxxxxxxxxxxx> <20040924233713.GA8001@xxxxxxxxxxxxxxxxxxx> <20040924164540.2d750572.davem@xxxxxxxxxxxxx> <20040925000503.GA10873@xxxxxxxxxxxxxxxxxxx> <20040927122700.4696e416.davem@xxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040722i
On Mon, Sep 27, 2004 at 12:27:00PM -0700, David S. Miller wrote:
> 
> Ok.. idea wise.  But, why are you subtracting 'delta' from
> skb->truesize?  That's the amount actually used not the
> amount trimmed by pskb_expand_head().

delta = skb->end - skb->tail which is the amount we want to trim.
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

<Prev in Thread] Current Thread [Next in Thread>