]> git.droids-corp.org - dpdk.git/blobdiff - app/test-crypto-perf/cperf_test_throughput.c
cryptodev: move IV parameters to session
[dpdk.git] / app / test-crypto-perf / cperf_test_throughput.c
index 5a90eb0cb26fa57db74d41b421b5997903057a4f..d043f60bc23745b95f25ac0ed92f4a890e42a2f0 100644 (file)
@@ -195,7 +195,11 @@ cperf_throughput_test_constructor(uint8_t dev_id, uint16_t qp_id,
        ctx->options = options;
        ctx->test_vector = test_vector;
 
-       ctx->sess = op_fns->sess_create(dev_id, options, test_vector);
+       /* IV goes at the end of the cryptop operation */
+       uint16_t iv_offset = sizeof(struct rte_crypto_op) +
+               sizeof(struct rte_crypto_sym_op);
+
+       ctx->sess = op_fns->sess_create(dev_id, options, test_vector, iv_offset);
        if (ctx->sess == NULL)
                goto err;