From: Adam Dybkowski <adamx.dybkow...@intel.com> This patch enables RAW API in feature flags on QAT generations 1 to 3 only. Disables it for later generations.
Signed-off-by: Adam Dybkowski <adamx.dybkow...@intel.com> --- drivers/crypto/qat/qat_sym_pmd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/qat/qat_sym_pmd.c b/drivers/crypto/qat/qat_sym_pmd.c index 0097ee210f..1c7b142511 100644 --- a/drivers/crypto/qat/qat_sym_pmd.c +++ b/drivers/crypto/qat/qat_sym_pmd.c @@ -409,8 +409,10 @@ qat_sym_dev_create(struct qat_pci_device *qat_pci_dev, RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT | RTE_CRYPTODEV_FF_OOP_LB_IN_SGL_OUT | RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT | - RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED | - RTE_CRYPTODEV_FF_SYM_RAW_DP; + RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED; + + if (qat_pci_dev->qat_dev_gen < QAT_GEN4) + cryptodev->feature_flags |= RTE_CRYPTODEV_FF_SYM_RAW_DP; if (rte_eal_process_type() != RTE_PROC_PRIMARY) return 0; -- 2.25.1