test/crypto: fix device id when stopping port
authorHemant Agrawal <hemant.agrawal@nxp.com>
Wed, 4 Jul 2018 09:49:38 +0000 (15:19 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 10 Jul 2018 22:57:51 +0000 (00:57 +0200)
commitbb6f0b734f306c48bedac0df66cc9b8f62b595aa
treea33b31b64b9328eb9f6c1bef54a746782b30feba
parent45c03bbe082c35bfc9ac8f231d2946503922efb9
test/crypto: fix device id when stopping port

dev_id is valid, while ts_params->valid_devs[devid] may
result a different value in case multiple devices are present
and any of the device is being used.

Fixes: 202d375c60bc ("app/test: add cryptodev unit and performance tests")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
test/test/test_cryptodev.c