examples/fips_validation: fix session private mempool
authorFan Zhang <roy.fan.zhang@intel.com>
Tue, 15 Jan 2019 10:36:38 +0000 (10:36 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 17 Jan 2019 23:09:16 +0000 (00:09 +0100)
This patch fixes the incorrect session private mempool passing
to cryptodev.

Fixes: 41d561cbdd24 ("examples/fips_validation: add power on self test")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/fips_validation/fips_dev_self_test.c

index 2c7e9d2..ac366cb 100644 (file)
@@ -1449,7 +1449,7 @@ run_single_test(uint8_t dev_id,
                return -ENOMEM;
 
        ret = rte_cryptodev_sym_session_init(dev_id,
-                       sess, &xform, env->sess_pool);
+                       sess, &xform, env->sess_priv_pool);
        if (ret < 0) {
                RTE_LOG(ERR, PMD, "Error %i: Init session\n", ret);
                return ret;