raw/ioat: fix device state after test
authorCiara Power <ciara.power@intel.com>
Thu, 10 Oct 2019 12:36:02 +0000 (13:36 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Sun, 27 Oct 2019 13:09:08 +0000 (14:09 +0100)
commitdf769483bf88d23527654c4ea9567d37138aae8a
tree3ca05f3b37ff0627324417a4dd38d2175a6abd51
parentec4a1d40a5bde90135d7fdac88e3dc76e8d998f5
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 <ciara.power@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/raw/ioat/ioat_rawdev_test.c