]> git.karo-electronics.de Git - karo-tx-linux.git/commit
crypto: virtio - support crypto engine framework
authorGonglei \(Arei\) <arei.gonglei@huawei.com>
Tue, 27 Dec 2016 06:49:07 +0000 (14:49 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Dec 2016 11:52:38 +0000 (19:52 +0800)
commitd79b5d0bbf2e3aded13b0542160bde48e95d3d44
tree77930d39c6142640fc474d8ec9fea2d08872fb43
parent1043c5146877ea48e4c8569a1c7931e1bfb6acb5
crypto: virtio - support crypto engine framework

crypto engine was introduced since 'commit 735d37b5424b ("crypto: engine
- Introduce the block request crypto engine framework")' which uses work
queue to realize the asynchronous processing for ablk_cipher and ahash.

For virtio-crypto device, I register an engine for each
data virtqueue so that we can use the capability of
multiple data queues in future.

Cc: Baolin Wang <baolin.wang@linaro.org>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/virtio/Kconfig
drivers/crypto/virtio/virtio_crypto_algs.c
drivers/crypto/virtio/virtio_crypto_common.h
drivers/crypto/virtio/virtio_crypto_core.c