From fe09afb73b349bdb25b343a09810ba1bfe6e5bcf Mon Sep 17 00:00:00 2001 From: Kirill Rybalchenko Date: Wed, 14 Jun 2017 09:42:46 +0100 Subject: [PATCH] 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 --- lib/librte_cryptodev/rte_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1