patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] app/crypto-perf: fix AEAD tests when AAD is zero
@ 2017-04-12  9:26 Pablo de Lara
  2017-04-18 20:44 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo de Lara @ 2017-04-12  9:26 UTC (permalink / raw)
  To: dev; +Cc: declan.doherty, stable, Pablo de Lara

For AEAD algorithms, additional authenticated data (AAD)
can be passed, but it is optional, so its size can be zero.
Therefore, test can be run if no memory is allocated.

Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test application")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 app/test-crypto-perf/cperf_test_vectors.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-crypto-perf/cperf_test_vectors.c b/app/test-crypto-perf/cperf_test_vectors.c
index f87bb8e..757957f 100644
--- a/app/test-crypto-perf/cperf_test_vectors.c
+++ b/app/test-crypto-perf/cperf_test_vectors.c
@@ -463,7 +463,7 @@ cperf_test_vector_get_dummy(struct cperf_options *options)
 			break;
 		}
 
-		if (aad_alloc) {
+		if (aad_alloc && options->auth_aad_sz) {
 			t_vec->aad.data = rte_malloc(NULL,
 					options->auth_aad_sz, 16);
 			if (t_vec->aad.data == NULL) {
-- 
2.7.4

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

* Re: [dpdk-stable] [PATCH] app/crypto-perf: fix AEAD tests when AAD is zero
  2017-04-12  9:26 [dpdk-stable] [PATCH] app/crypto-perf: fix AEAD tests when AAD is zero Pablo de Lara
@ 2017-04-18 20:44 ` De Lara Guarch, Pablo
  0 siblings, 0 replies; 2+ messages in thread
From: De Lara Guarch, Pablo @ 2017-04-18 20:44 UTC (permalink / raw)
  To: dev; +Cc: Doherty, Declan, stable



> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Wednesday, April 12, 2017 10:26 AM
> To: dev@dpdk.org
> Cc: Doherty, Declan; stable@dpdk.org; De Lara Guarch, Pablo
> Subject: [PATCH] app/crypto-perf: fix AEAD tests when AAD is zero
> 
> For AEAD algorithms, additional authenticated data (AAD)
> can be passed, but it is optional, so its size can be zero.
> Therefore, test can be run if no memory is allocated.
> 
> Fixes: f8be1786b1b8 ("app/crypto-perf: introduce performance test
> application")
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Applied to dpdk-next-crypto.

Pablo

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

end of thread, other threads:[~2017-04-18 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-12  9:26 [dpdk-stable] [PATCH] app/crypto-perf: fix AEAD tests when AAD is zero Pablo de Lara
2017-04-18 20:44 ` 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).