Re: [PATCH 1/2] [CRYPTO] tcrypt: Move sg_init_table out of timing loops

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jens Axboe <jens.axboe@...>
Cc: David S. Miller <davem@...>, Linux Kernel Mailing List <linux-kernel@...>, Linux Crypto Mailing List <linux-crypto@...>, <netdev@...>
Date: Tuesday, October 30, 2007 - 10:18 am

On Tue, Oct 30, 2007 at 06:50:58AM +0100, Jens Axboe wrote:

For one of the cases yes but the other one repeatedly calls
sg_init_one on the same sg entry while we really only need
to initialise it once and call sg_set_buf afterwards.

Normally this is irrelevant but the loops in question are
trying to estimate the speed of the algorithms so it's good
to exclude as much noise from them as possible.

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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] [CRYPTO] tcrypt: Move sg_init_table out of t..., Herbert Xu, (Tue Oct 30, 10:18 am)