[dpdk-dev] test/crypto: fix ARMV8 crypto performance test application

Message ID 1500010987-20719-1-git-send-email-ssrinivasan@caviumnetworks.com (mailing list archive)
State Accepted, archived
Delegated to: Pablo de Lara Guarch
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Srisivasubramanian S July 14, 2017, 5:43 a.m. UTC
  Session was null as test_crypto_session not initialised.

Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions")

Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>
---
 test/test/test_cryptodev_perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

De Lara Guarch, Pablo July 14, 2017, 2:59 p.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of
> Srisivasubramanian S
> Sent: Friday, July 14, 2017 6:43 AM
> To: Doherty, Declan <declan.doherty@intel.com>;
> jerin.jacob@caviumnetworks.com; zbigniew.bodek@caviumnetworks.com
> Cc: dev@dpdk.org
> Subject: [dpdk-dev] [PATCH] test/crypto: fix ARMV8 crypto performance
> test application
> 
> Session was null as test_crypto_session not initialised.
> 
> Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions")
> 
> Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com>

Modified the title to: "test/crypto-perf: fix ARMv8 session creation"

Applied to dpdk-next-crypto.
Thanks,

Pablo
  

Patch

diff --git a/test/test/test_cryptodev_perf.c b/test/test/test_cryptodev_perf.c
index 8cddaa7..8febd1a 100644
--- a/test/test/test_cryptodev_perf.c
+++ b/test/test/test_cryptodev_perf.c
@@ -2950,7 +2950,7 @@  static uint32_t get_aead_digest_length(enum rte_crypto_aead_algorithm algo)
 
 	auth_xform.auth.digest_length = get_auth_digest_length(auth_algo);
 
-	rte_cryptodev_sym_session_create(ts_params->sess_mp);
+	test_crypto_session = rte_cryptodev_sym_session_create(ts_params->sess_mp);
 
 	switch (chain) {
 	case CIPHER_HASH: