netdev
[Top] [All Lists]

Re: [RFC] Replace scatterlist with crypto_frag

To: "David S. Miller" <davem@xxxxxxxxxxxxx>
Subject: Re: [RFC] Replace scatterlist with crypto_frag
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 7 Jun 2005 09:14:05 +1000
Cc: hch@xxxxxxxxxxxxx, jmorris@xxxxxxxxxx, linux-crypto@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20050606.160947.75190168.davem@davemloft.net>
References: <20050606124043.GA625@gondor.apana.org.au> <20050606.154653.64001264.davem@davemloft.net> <20050606230437.GA7172@gondor.apana.org.au> <20050606.160947.75190168.davem@davemloft.net>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Mon, Jun 06, 2005 at 04:09:47PM -0700, David S. Miller wrote:
> 
> So you want to use this area as a sort-of temporary
> scratch pad for something other than scatterlist
> information?  That's interesting if so...

There are two possibilities:

1) We use it directly as a scratch buffer for now since the
frags are always linearised currently.

2) We have a list of lists of which this is simply a member.
The meta-list itself can then be stored on the stack since
each member is only 4 bytes.

We can go with 1) for now.  When it becomes possible for us
to not flatten the frags, we can switch to 2).

Cheers,
-- 
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>