Enable retry for virtio-crypto-dev, so that crypto-engine can process cipher-requests parallelly.
Unified · Split
| @@ -144,7 +144,8 @@ static int virtcrypto_find_vqs(struct virtio_crypto *vi) · 143 unmodified lines | ||
| 144 | 144 | spin_lock_init(&vi->data_vq[i].lock); |
| 145 | 145 | vi->data_vq[i].vq = vqs[i]; |
| 146 | 146 | /* Initialize crypto engine */ |
| 147 | − vi->data_vq[i].engine = crypto_engine_alloc_init(dev, 1); | |
| 147 | + vi->data_vq[i].engine = crypto_engine_alloc_init_and_set(dev, true, NULL, true, | |
| 148 | + virtqueue_get_vring_size(vqs[i])); | |
| 148 | 149 | if (!vi->data_vq[i].engine) { |
| 149 | 150 | ret = -ENOMEM; |
| 150 | 151 | goto err_engine; |