[dpdk-dev] [PATCH v2] app/test-crypto-perf: fix index
Fan Zhang
roy.fan.zhang at intel.com
Tue Jan 23 15:22:55 CET 2018
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 at intel.com>
---
v2:
Removed unnecessary cdev_id assignment line.
app/test-crypto-perf/main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/app/test-crypto-perf/main.c b/app/test-crypto-perf/main.c
index 83a9d7b73..dd16fbe24 100644
--- a/app/test-crypto-perf/main.c
+++ b/app/test-crypto-perf/main.c
@@ -582,10 +582,8 @@ main(int argc, char **argv)
if (i == nb_cryptodevs)
break;
- 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;
--
2.13.6
More information about the dev
mailing list