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.zh...@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

Reply via email to