From b7aa3b5b888987aec0686a9b4b368255740c77df Mon Sep 17 00:00:00 2001 From: Jay Zhou Date: Fri, 15 May 2020 17:31:27 +0800 Subject: [PATCH] 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 --- doc/guides/cryptodevs/features/virtio.ini | 1 + drivers/crypto/virtio/virtio_cryptodev.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1