crypto/virtio: enable OOP feature flag
authorJay Zhou <jianjay.zhou@huawei.com>
Fri, 15 May 2020 09:31:27 +0000 (17:31 +0800)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sun, 17 May 2020 14:10:44 +0000 (16:10 +0200)
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>
doc/guides/cryptodevs/features/virtio.ini
drivers/crypto/virtio/virtio_cryptodev.c

index b59f166..5dff094 100644 (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.
index e7fb71a..cdf43b0 100644 (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;