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

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

 



On Thu, Oct 04, 2007 at 01:49:23PM +0800, Herbert Xu (herbert@xxxxxxxxxxxxxxxxxxx) 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.

I use ablkcipher_enqueue_request() when hardware can not handle new
request, so this should be ok.

-- 
	Evgeniy Polyakov
-
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