Re: [1/1 take 2] HIFN 795x driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 03, 2007 at 04:05:18PM +0400, Evgeniy Polyakov wrote:
>
> What is may backlog option? I did not find it in cryptd.c, which I used
> for reference. I found a backlog variables in the driver, but without
> any signs for the outside world - queue is initialized and backlog is
> being set to that queue - since there is a dequeueing code, what is a
> purpose for backlog in that case?

It's not directly in cryptd because it uses the helpers from
algapi.c.  In particular ablkcipher_enqueue_request has the
necessary logic to handle this correctly.

You could either use that helper yourself once your hardware
queue fills up, or implement your own backlog logic.  The key
is each tfm object must be guaranteed to be able to queue at
least one request.

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
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux