crypto/virtio: enable OOP feature flag

Since it will check the feature mask before running out-of-place
test cases and the virtio-crypto device supports OOP_LB_IN_LB_OUT mode.

Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
This commit is contained in:
Jay Zhou 2020-05-15 17:31:27 +08:00 committed by Akhil Goyal
parent caeba5062c
commit b7aa3b5b88
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
[Features]
Symmetric crypto = Y
Sym operation chaining = Y
OOP LB In LB Out = Y
;
; Supported crypto algorithms of the 'virtio' crypto driver.

View File

@ -741,7 +741,8 @@ crypto_virtio_create(const char *name, struct rte_pci_device *pci_dev,
cryptodev->dequeue_burst = virtio_crypto_pkt_rx_burst;
cryptodev->feature_flags = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |
RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING;
RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT;
hw = cryptodev->data->dev_private;
hw->dev_id = cryptodev->data->dev_id;