git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus/dpaa: add QMAN interface driver
[dpdk.git]
/
app
/
test-crypto-perf
/
cperf_ops.c
diff --git
a/app/test-crypto-perf/cperf_ops.c
b/app/test-crypto-perf/cperf_ops.c
index
d718278
..
88fb972
100644
(file)
--- a/
app/test-crypto-perf/cperf_ops.c
+++ b/
app/test-crypto-perf/cperf_ops.c
@@
-367,7
+367,8
@@
cperf_set_ops_aead(struct rte_crypto_op **ops,
}
static struct rte_cryptodev_sym_session *
}
static struct rte_cryptodev_sym_session *
-cperf_create_session(uint8_t dev_id,
+cperf_create_session(struct rte_mempool *sess_mp,
+ uint8_t dev_id,
const struct cperf_options *options,
const struct cperf_test_vector *test_vector,
uint16_t iv_offset)
const struct cperf_options *options,
const struct cperf_test_vector *test_vector,
uint16_t iv_offset)
@@
-377,6
+378,7
@@
cperf_create_session(uint8_t dev_id,
struct rte_crypto_sym_xform aead_xform;
struct rte_cryptodev_sym_session *sess = NULL;
struct rte_crypto_sym_xform aead_xform;
struct rte_cryptodev_sym_session *sess = NULL;
+ sess = rte_cryptodev_sym_session_create(sess_mp);
/*
* cipher only
*/
/*
* cipher only
*/
@@
-401,7
+403,8
@@
cperf_create_session(uint8_t dev_id,
cipher_xform.cipher.iv.length = 0;
}
/* create crypto session */
cipher_xform.cipher.iv.length = 0;
}
/* create crypto session */
- sess = rte_cryptodev_sym_session_create(dev_id, &cipher_xform);
+ rte_cryptodev_sym_session_init(dev_id, sess, &cipher_xform,
+ sess_mp);
/*
* auth only
*/
/*
* auth only
*/
@@
-427,7
+430,8
@@
cperf_create_session(uint8_t dev_id,
auth_xform.auth.iv.length = 0;
}
/* create crypto session */
auth_xform.auth.iv.length = 0;
}
/* create crypto session */
- sess = rte_cryptodev_sym_session_create(dev_id, &auth_xform);
+ rte_cryptodev_sym_session_init(dev_id, sess, &auth_xform,
+ sess_mp);
/*
* cipher and auth
*/
/*
* cipher and auth
*/
@@
-483,13
+487,13
@@
cperf_create_session(uint8_t dev_id,
if (options->op_type == CPERF_CIPHER_THEN_AUTH) {
cipher_xform.next = &auth_xform;
/* create crypto session */
if (options->op_type == CPERF_CIPHER_THEN_AUTH) {
cipher_xform.next = &auth_xform;
/* create crypto session */
-
sess = rte_cryptodev_sym_session_create
(dev_id,
-
&cipher_xform
);
+
rte_cryptodev_sym_session_init
(dev_id,
+
sess, &cipher_xform, sess_mp
);
} else { /* auth then cipher */
auth_xform.next = &cipher_xform;
/* create crypto session */
} else { /* auth then cipher */
auth_xform.next = &cipher_xform;
/* create crypto session */
-
sess = rte_cryptodev_sym_session_create
(dev_id,
-
&auth_xform
);
+
rte_cryptodev_sym_session_init
(dev_id,
+
sess, &auth_xform, sess_mp
);
}
} else { /* options->op_type == CPERF_AEAD */
aead_xform.type = RTE_CRYPTO_SYM_XFORM_AEAD;
}
} else { /* options->op_type == CPERF_AEAD */
aead_xform.type = RTE_CRYPTO_SYM_XFORM_AEAD;
@@
-505,11
+509,12
@@
cperf_create_session(uint8_t dev_id,
aead_xform.aead.iv.length = test_vector->aead_iv.length;
aead_xform.aead.digest_length = options->digest_sz;
aead_xform.aead.iv.length = test_vector->aead_iv.length;
aead_xform.aead.digest_length = options->digest_sz;
- aead_xform.aead.a
dd_auth_data
_length =
+ aead_xform.aead.a
ad
_length =
options->aead_aad_sz;
/* Create crypto session */
options->aead_aad_sz;
/* Create crypto session */
- sess = rte_cryptodev_sym_session_create(dev_id, &aead_xform);
+ rte_cryptodev_sym_session_init(dev_id,
+ sess, &aead_xform, sess_mp);
}
return sess;
}
return sess;