cryptodev: add auth IV
[dpdk.git] / app / test-crypto-perf / cperf_test_throughput.c
index d043f60..f279bb1 100644 (file)
@@ -266,7 +266,8 @@ cperf_throughput_test_constructor(uint8_t dev_id, uint16_t qp_id,
        snprintf(pool_name, sizeof(pool_name), "cperf_op_pool_cdev_%d",
                        dev_id);
 
-       uint16_t priv_size = test_vector->iv.length;
+       uint16_t priv_size = test_vector->cipher_iv.length +
+               test_vector->auth_iv.length;
 
        ctx->crypto_op_pool = rte_crypto_op_pool_create(pool_name,
                        RTE_CRYPTO_OP_TYPE_SYMMETRIC, options->pool_sz,