From: Jay Zhou Date: Fri, 15 May 2020 09:31:27 +0000 (+0800) Subject: crypto/virtio: enable OOP feature flag X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b7aa3b5b888987aec0686a9b4b368255740c77df;p=dpdk.git 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 Signed-off-by: Akhil Goyal --- diff --git a/doc/guides/cryptodevs/features/virtio.ini b/doc/guides/cryptodevs/features/virtio.ini index b59f1669bb..5dff094821 100644 --- a/doc/guides/cryptodevs/features/virtio.ini +++ b/doc/guides/cryptodevs/features/virtio.ini @@ -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. diff --git a/drivers/crypto/virtio/virtio_cryptodev.c b/drivers/crypto/virtio/virtio_cryptodev.c index e7fb71a64c..cdf43b0e0b 100644 --- a/drivers/crypto/virtio/virtio_cryptodev.c +++ b/drivers/crypto/virtio/virtio_cryptodev.c @@ -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;