DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/test-crypto-perf: fix index
@ 2018-01-23 11:54 Fan Zhang
  2018-01-23 14:22 ` [dpdk-dev] [PATCH v2] " Fan Zhang
  0 siblings, 1 reply; 4+ messages in thread
From: Fan Zhang @ 2018-01-23 11:54 UTC (permalink / raw)
  To: dev; +Cc: pablo.de.lara.guarch

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(-)

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;
-- 
2.13.6

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH v2] app/test-crypto-perf: fix index
  2018-01-23 11:54 [dpdk-dev] [PATCH] app/test-crypto-perf: fix index Fan Zhang
@ 2018-01-23 14:22 ` Fan Zhang
  2018-01-23 15:28   ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 4+ messages in thread
From: Fan Zhang @ 2018-01-23 14:22 UTC (permalink / raw)
  To: dev; +Cc: pablo.de.lara.guarch

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>
---
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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] app/test-crypto-perf: fix index
  2018-01-23 14:22 ` [dpdk-dev] [PATCH v2] " Fan Zhang
@ 2018-01-23 15:28   ` De Lara Guarch, Pablo
  2018-01-23 15:39     ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 4+ messages in thread
From: De Lara Guarch, Pablo @ 2018-01-23 15:28 UTC (permalink / raw)
  To: Zhang, Roy Fan, dev



> -----Original Message-----
> From: Zhang, Roy Fan
> Sent: Tuesday, January 23, 2018 2:23 PM
> To: dev@dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Subject: [PATCH v2] 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.
> 
> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>

Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH v2] app/test-crypto-perf: fix index
  2018-01-23 15:28   ` De Lara Guarch, Pablo
@ 2018-01-23 15:39     ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 4+ messages in thread
From: De Lara Guarch, Pablo @ 2018-01-23 15:39 UTC (permalink / raw)
  To: De Lara Guarch, Pablo, Zhang, Roy Fan, dev



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of De Lara Guarch,
> Pablo
> Sent: Tuesday, January 23, 2018 3:29 PM
> To: Zhang, Roy Fan <roy.fan.zhang@intel.com>; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH v2] app/test-crypto-perf: fix index
> 
> 
> 
> > -----Original Message-----
> > From: Zhang, Roy Fan
> > Sent: Tuesday, January 23, 2018 2:23 PM
> > To: dev@dpdk.org
> > Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> > Subject: [PATCH v2] 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.
> >
> > Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
> 
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Applied to dpdk-next-crypto.
Thanks,

Pablo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-23 15:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-23 11:54 [dpdk-dev] [PATCH] app/test-crypto-perf: fix index Fan Zhang
2018-01-23 14:22 ` [dpdk-dev] [PATCH v2] " Fan Zhang
2018-01-23 15:28   ` De Lara Guarch, Pablo
2018-01-23 15:39     ` De Lara Guarch, Pablo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).