[dpdk-dev,1/1] fix the number of operations in libcrypto test

Message ID 1476086870-10538-1-git-send-email-marcinx.kerlin@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Pablo de Lara Guarch
Headers

Commit Message

Marcin Kerlin Oct. 10, 2016, 8:07 a.m. UTC
  This patch reduce the number of total operations from 1M to 10K, because
test is taking too long time now.

Fixes: ffbe3be0d4b5 ("app/test: add libcrypto")

Signed-off-by: Marcin Kerlin <marcinx.kerlin@intel.com>
---
 app/test/test_cryptodev_perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

De Lara Guarch, Pablo Oct. 11, 2016, 12:27 a.m. UTC | #1
> -----Original Message-----
> From: Kerlin, MarcinX
> Sent: Monday, October 10, 2016 1:08 AM
> To: dev@dpdk.org
> Cc: De Lara Guarch, Pablo; Jastrzebski, MichalX K; Kerlin, MarcinX
> Subject: [PATCH 1/1] fix the number of operations in libcrypto test
> 
> This patch reduce the number of total operations from 1M to 10K, because
> test is taking too long time now.
> 
> Fixes: ffbe3be0d4b5 ("app/test: add libcrypto")
> 
> Signed-off-by: Marcin Kerlin <marcinx.kerlin@intel.com>
> ---
>  app/test/test_cryptodev_perf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/app/test/test_cryptodev_perf.c b/app/test/test_cryptodev_perf.c
> index 4aee9af..43a7166 100644
> --- a/app/test/test_cryptodev_perf.c
> +++ b/app/test/test_cryptodev_perf.c
> @@ -3420,7 +3420,7 @@ test_perf_snow3G_vary_pkt_size(void)
>  static int
>  test_perf_libcrypto_vary_pkt_size(void)
>  {
> -	unsigned int total_operations = 1000000;
> +	unsigned int total_operations = 10000;
>  	unsigned int burst_size = { 64 };
>  	unsigned int buf_lengths[] = { 64, 128, 256, 512, 768, 1024, 1280,
> 1536,
>  			1792, 2048 };
> --
> 1.9.1

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

Will change the title, as it is missing the category (app/test: )
  
De Lara Guarch, Pablo Oct. 11, 2016, 12:38 a.m. UTC | #2
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of De Lara Guarch,
> Pablo
> Sent: Monday, October 10, 2016 5:27 PM
> To: Kerlin, MarcinX; dev@dpdk.org
> Cc: Jastrzebski, MichalX K
> Subject: Re: [dpdk-dev] [PATCH 1/1] fix the number of operations in libcrypto
> test
> 
> 
> 
> > -----Original Message-----
> > From: Kerlin, MarcinX
> > Sent: Monday, October 10, 2016 1:08 AM
> > To: dev@dpdk.org
> > Cc: De Lara Guarch, Pablo; Jastrzebski, MichalX K; Kerlin, MarcinX
> > Subject: [PATCH 1/1] fix the number of operations in libcrypto test
> >
> > This patch reduce the number of total operations from 1M to 10K, because
> > test is taking too long time now.
> >
> > Fixes: ffbe3be0d4b5 ("app/test: add libcrypto")
> >
> > Signed-off-by: Marcin Kerlin <marcinx.kerlin@intel.com>
> > ---
> >  app/test/test_cryptodev_perf.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/app/test/test_cryptodev_perf.c
> b/app/test/test_cryptodev_perf.c
> > index 4aee9af..43a7166 100644
> > --- a/app/test/test_cryptodev_perf.c
> > +++ b/app/test/test_cryptodev_perf.c
> > @@ -3420,7 +3420,7 @@ test_perf_snow3G_vary_pkt_size(void)
> >  static int
> >  test_perf_libcrypto_vary_pkt_size(void)
> >  {
> > -	unsigned int total_operations = 1000000;
> > +	unsigned int total_operations = 10000;
> >  	unsigned int burst_size = { 64 };
> >  	unsigned int buf_lengths[] = { 64, 128, 256, 512, 768, 1024, 1280,
> > 1536,
> >  			1792, 2048 };
> > --
> > 1.9.1
> 
> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> 
> Will change the title, as it is missing the category (app/test: )

Applied to dpdk-next-crypto.
Thanks,

Pablo
  

Patch

diff --git a/app/test/test_cryptodev_perf.c b/app/test/test_cryptodev_perf.c
index 4aee9af..43a7166 100644
--- a/app/test/test_cryptodev_perf.c
+++ b/app/test/test_cryptodev_perf.c
@@ -3420,7 +3420,7 @@  test_perf_snow3G_vary_pkt_size(void)
 static int
 test_perf_libcrypto_vary_pkt_size(void)
 {
-	unsigned int total_operations = 1000000;
+	unsigned int total_operations = 10000;
 	unsigned int burst_size = { 64 };
 	unsigned int buf_lengths[] = { 64, 128, 256, 512, 768, 1024, 1280, 1536,
 			1792, 2048 };