test/crypto-perf: fix ARMv8 session creation
authorSrisivasubramanian S <ssrinivasan@caviumnetworks.com>
Fri, 14 Jul 2017 05:43:07 +0000 (11:13 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 19 Jul 2017 11:10:41 +0000 (14:10 +0300)
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

index 8cddaa7..8febd1a 100644 (file)
@@ -2950,7 +2950,7 @@ test_perf_create_armv8_session(uint8_t dev_id, enum chain_mode chain,
 
        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: