From: Pablo de Lara Date: Thu, 2 Aug 2018 08:44:39 +0000 (+0100) Subject: app/crypto-perf: fix auth IV offset X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7925c6be2a738051bb2fc2b4be4be9a5a5c412a1;p=dpdk.git app/crypto-perf: fix auth IV offset Auth IV offset was not being set when creating the crypto session. Fixes: acf8616901b5 ("cryptodev: add auth IV") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara --- diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c index 8f320099dd..44808f50a5 100644 --- a/app/test-crypto-perf/cperf_ops.c +++ b/app/test-crypto-perf/cperf_ops.c @@ -514,6 +514,7 @@ cperf_create_session(struct rte_mempool *sess_mp, auth_xform.next = NULL; auth_xform.auth.algo = options->auth_algo; auth_xform.auth.op = options->auth_op; + auth_xform.auth.iv.offset = iv_offset; /* auth different than null */ if (options->auth_algo != RTE_CRYPTO_AUTH_NULL) { @@ -568,6 +569,8 @@ cperf_create_session(struct rte_mempool *sess_mp, auth_xform.next = NULL; auth_xform.auth.algo = options->auth_algo; auth_xform.auth.op = options->auth_op; + auth_xform.auth.iv.offset = iv_offset + + cipher_xform.cipher.iv.length; /* auth different than null */ if (options->auth_algo != RTE_CRYPTO_AUTH_NULL) {