app/crypto-perf: fix auth IV offset
Auth IV offset was not being set when creating the crypto session.
Fixes: acf8616901
("cryptodev: add auth IV")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
7f474b4324
commit
7925c6be2a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user