Skip to contentSkip to conversation

app/test-crypto-perf: fix index

PATCH Superseded Fan Zhang 2 participants 4 messages Jan 23, 2018

lore
Share & tools
lore

Fan Zhang

author
#0 lore raw

PATCH 1/1 app/test-crypto-perf: fix index

Fixes 27c2e7471961 ("app/crypto-perf: support IMIX")

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

---
 app/test-crypto-perf/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test-crypto-perf/main.c +1 -1
index 83a9d7b73..6d850af03 100644
@@ -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;
Signature · 1 line
2.13.6
author
#1 lore raw

PATCH v2 1/1 app/test-crypto-perf: fix index

Fixes 27c2e7471961 ("app/crypto-perf: support IMIX")

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

---
v2:
Removed unnecessary cdev_id assignment line.

 app/test-crypto-perf/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
app/test-crypto-perf/main.c +1 -3
index 83a9d7b73..dd16fbe24 100644
@@ -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;
Signature · 1 line
2.13.6
Acked-by on v2 1/1
#2 lore raw
Quoted 9 lines

-----Original Message-----
From: Zhang, Roy Fan
Sent: Tuesday, January 23, 2018 2:23 PM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>
Subject: [PATCH v2] app/test-crypto-perf: fix index

Quoted 5 lines
Fixes 27c2e7471961 ("app/crypto-perf: support IMIX")

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

#3 lore raw
Quoted 18 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of De Lara Guarch, Pablo
Sent: Tuesday, January 23, 2018 3:29 PM
To: Zhang, Roy Fan <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v2] app/test-crypto-perf: fix index

Quoted 7 lines

-----Original Message-----
From: Zhang, Roy Fan
Sent: Tuesday, January 23, 2018 2:23 PM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>
Subject: [PATCH v2] app/test-crypto-perf: fix index

Quoted 7 lines
Quoted 5 lines
Fixes 27c2e7471961 ("app/crypto-perf: support IMIX")

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

Applied to dpdk-next-crypto.
Thanks,

Pablo