From: David Coyle Date: Thu, 16 Jul 2020 15:29:52 +0000 (+0100) Subject: app/crypto-perf: enable feature flag for security X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4ad736ce03d22e917f7de16fd4ba24d9b49edce9;p=dpdk.git app/crypto-perf: enable feature flag for security The RTE_CRYPTODEV_FF_SECURITY feature was disabled through the ff_disable device configuration option for all crypto performance tests, including security related tests. This patch updates the crypto performance tool to not disable RTE_CRYPTODEV_FF_SECURITY for DOCSIS and PDCP security tests. Fixes: d4a131a9498d ("test/crypto-perf: support DOCSIS protocol") Signed-off-by: David Coyle Acked-by: Akhil Goyal --- diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c index edeea9c1be..8f8e580e4d 100644 --- a/app/test-crypto-perf/main.c +++ b/app/test-crypto-perf/main.c @@ -203,10 +203,13 @@ cperf_initialize_cryptodev(struct cperf_options *opts, uint8_t *enabled_cdevs) struct rte_cryptodev_config conf = { .nb_queue_pairs = opts->nb_qps, .socket_id = socket_id, - .ff_disable = RTE_CRYPTODEV_FF_SECURITY | - RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO, + .ff_disable = RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO, }; + if (opts->op_type != CPERF_PDCP && + opts->op_type != CPERF_DOCSIS) + conf.ff_disable |= RTE_CRYPTODEV_FF_SECURITY; + struct rte_cryptodev_qp_conf qp_conf = { .nb_descriptors = opts->nb_descriptors };