Re: [PATCH v2] crypto/caam: add backlogging support

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

 



On Wed, Sep 23, 2015 at 02:40:32PM +0000, Porosanu Alexandru wrote:
> 
> Yes, you are absolutely right. In this case, I have some reasons why I wouldn't like to use a crypto_queue based approach:
> 
> 1) we've prototyped a crypto_queue implementation which did not reach the performance expectations due to CPU overhead;

I'm not saying that you should always use a software queue.  The
queue is only needed when your hardware queue is full.  You can
make it zero-length for requests that are not MAY_BACKLOG, i.e.,
only MAY_BACKLOG requests need to be queued, everything else can
just be dropped when the hw queue is full.

If you do that I don't see why the performance should be any
different.

Cheers,
-- 
Email: Herbert Xu <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