cryptodev: fix device stop function
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>
Wed, 14 Jun 2017 08:42:46 +0000 (09:42 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 28 Jun 2017 17:59:22 +0000 (19:59 +0200)
commitfe09afb73b349bdb25b343a09810ba1bfe6e5bcf
tree9d9de07c77a753b27b15358702d4bd1db3f7abc8
parent5949e30dae6ee2fc82e5425e56797043a5d07095
cryptodev: fix device stop function

Flag dev_started should be cleared after dev_stop() function call
because the flag is checked inside the dev_stop() function.

Fixes: d11b0f30df88 ("cryptodev: introduce API and framework for crypto devices")
Cc: stable@dpdk.org
Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_cryptodev/rte_cryptodev.c