]> git.droids-corp.org - dpdk.git/commitdiff
app/crypto-perf: set crypto op pool cache
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Fri, 30 Jun 2017 07:56:29 +0000 (08:56 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 6 Jul 2017 15:15:49 +0000 (17:15 +0200)
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
app/test-crypto-perf/cperf_test_latency.c
app/test-crypto-perf/cperf_test_throughput.c
app/test-crypto-perf/cperf_test_verify.c

index 6b79735ac13f9f64cb842ba349f2eded832ab7d4..4fb7a9a9d1b10f570dc4f2dd26875f89b60eefac 100644 (file)
@@ -277,7 +277,7 @@ cperf_latency_test_constructor(uint8_t dev_id, uint16_t qp_id,
                        dev_id);
 
        ctx->crypto_op_pool = rte_crypto_op_pool_create(pool_name,
-                       RTE_CRYPTO_OP_TYPE_SYMMETRIC, options->pool_sz, 0, 0,
+                       RTE_CRYPTO_OP_TYPE_SYMMETRIC, options->pool_sz, 512, 0,
                        rte_socket_id());
        if (ctx->crypto_op_pool == NULL)
                goto err;
index b14808a1eb654bef55bbb3dcd44aeb135de3b9f7..85947a53da1b0c8b4221e637c047a23a39b35c28 100644 (file)
@@ -263,7 +263,7 @@ cperf_throughput_test_constructor(uint8_t dev_id, uint16_t qp_id,
                        dev_id);
 
        ctx->crypto_op_pool = rte_crypto_op_pool_create(pool_name,
-                       RTE_CRYPTO_OP_TYPE_SYMMETRIC, options->pool_sz, 0, 0,
+                       RTE_CRYPTO_OP_TYPE_SYMMETRIC, options->pool_sz, 512, 0,
                        rte_socket_id());
        if (ctx->crypto_op_pool == NULL)
                goto err;
index 454221e690da56ca2e50e90045e9c9e39a799363..b19f5e13697208cc35860dd33b206ec4b2cbaf7f 100644 (file)
@@ -267,7 +267,7 @@ cperf_verify_test_constructor(uint8_t dev_id, uint16_t qp_id,
                        dev_id);
 
        ctx->crypto_op_pool = rte_crypto_op_pool_create(pool_name,
-                       RTE_CRYPTO_OP_TYPE_SYMMETRIC, options->pool_sz, 0, 0,
+                       RTE_CRYPTO_OP_TYPE_SYMMETRIC, options->pool_sz, 512, 0,
                        rte_socket_id());
        if (ctx->crypto_op_pool == NULL)
                goto err;