From df769483bf88d23527654c4ea9567d37138aae8a Mon Sep 17 00:00:00 2001 From: Ciara Power Date: Thu, 10 Oct 2019 13:36:02 +0100 Subject: [PATCH] raw/ioat: fix device state after test The ioat rawdev was initially started during the test, however was never stopped. This would cause issues when running the test again, as the device cannot be configured when in a running state. The device is now stopped after the test has completed, or if the test is terminated due to error. Fixes: 849470d522ed ("raw/ioat: add configure, start and stop functions") Cc: stable@dpdk.org Signed-off-by: Ciara Power Acked-by: Bruce Richardson --- drivers/raw/ioat/ioat_rawdev_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/raw/ioat/ioat_rawdev_test.c b/drivers/raw/ioat/ioat_rawdev_test.c index f6c7dbb809..6aad79486e 100644 --- a/drivers/raw/ioat/ioat_rawdev_test.c +++ b/drivers/raw/ioat/ioat_rawdev_test.c @@ -220,6 +220,7 @@ ioat_rawdev_test(uint16_t dev_id) } printf("\n"); + rte_rawdev_stop(dev_id); rte_mempool_free(pool); free(snames); free(stats); @@ -227,6 +228,7 @@ ioat_rawdev_test(uint16_t dev_id) return 0; err: + rte_rawdev_stop(dev_id); rte_mempool_free(pool); free(snames); free(stats); -- 2.20.1