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>
}
printf("\n");
+ rte_rawdev_stop(dev_id);
rte_mempool_free(pool);
free(snames);
free(stats);
return 0;
err:
+ rte_rawdev_stop(dev_id);
rte_mempool_free(pool);
free(snames);
free(stats);