]> git.droids-corp.org - dpdk.git/commitdiff
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 b59f1669bba5456f2a39e7a95e3feed5f7e47147..5dff094821e0b73608685bc07c4a6cda07d7de7d 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 e7fb71a64c6646a70edfab38c00b8e33fb24609a..cdf43b0e0bb0b26506d5a323553afd7e751d187e 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;