[dpdk-dev] app/test-crypto-perf: fix index

Message ID 20180123115425.38549-1-roy.fan.zhang@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Pablo de Lara Guarch
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Fan Zhang Jan. 23, 2018, 11:54 a.m. UTC
  Fixes: 27c2e7471961 ("app/crypto-perf: support IMIX")

A bug caused index out-of-range error. This simple patch is to fix
this.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
---
 app/test-crypto-perf/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c
index 83a9d7b73..6d850af03 100644
--- a/app/test-crypto-perf/main.c
+++ b/app/test-crypto-perf/main.c
@@ -585,7 +585,7 @@  main(int argc, char **argv)
 				cdev_id = enabled_cdevs[i];
 
 				rte_eal_remote_launch(cperf_testmap[opts.test].runner,
-					ctx[cdev_id], lcore_id);
+					ctx[i], lcore_id);
 				i++;
 			}
 			i = 0;