examples/fips_validation: fix device start
authorFan Zhang <roy.fan.zhang@intel.com>
Thu, 28 Oct 2021 10:22:00 +0000 (11:22 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 4 Nov 2021 18:46:27 +0000 (19:46 +0100)
This patch fixes the missing device start for fips validation
sample app.

Bugzilla ID: 842
Fixes: 261bbff75e34 ("examples: use separate crypto session mempools")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
examples/fips_validation/main.c

index b0de3d2..dc40bff 100644 (file)
@@ -134,6 +134,10 @@ cryptodev_fips_validate_app_int(void)
        if (ret < 0)
                goto error_exit;
 
+       ret = rte_cryptodev_start(env.dev_id);
+       if (ret < 0)
+               goto error_exit;
+
        return 0;
 
 error_exit: