From: Kirill Rybalchenko Date: Wed, 14 Jun 2017 08:42:46 +0000 (+0100) Subject: cryptodev: fix device stop function X-Git-Tag: spdx-start~2932 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fe09afb73b349bdb25b343a09810ba1bfe6e5bcf;p=dpdk.git 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 Acked-by: Pablo de Lara --- diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 3d118b5d65..a466ed7ad0 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -781,8 +781,8 @@ rte_cryptodev_stop(uint8_t dev_id) return; } - dev->data->dev_started = 0; (*dev->dev_ops->dev_stop)(dev); + dev->data->dev_started = 0; } int