]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: virtio - adjust priority of algorithm
authorGonglei \(Arei\) <arei.gonglei@huawei.com>
Fri, 13 Jan 2017 09:34:16 +0000 (17:34 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 13 Jan 2017 10:47:22 +0000 (18:47 +0800)
commitffca5c212d0a86978befd9257261c4117fee8b30
tree880e5495aac742b97ac910e6c2821995ab55a1eb
parent6c7341d0caae87ffc4d043aff4b1781eefd16878
crypto: virtio - adjust priority of algorithm

Some hardware accelerators (like intel aesni or the s390
cpacf functions) have lower priorities than virtio
crypto, and those drivers are faster than the same in
the host via virtio. So let's lower the priority of
virtio-crypto's algorithm, make it's higher than software
implementations but lower than the hardware ones.

Suggested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/virtio/virtio_crypto_algs.c