[dpdk-dev] app/test: fix missing operation initialization

Message ID 1468146057-244209-1-git-send-email-deepak.k.jain@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Deepak Kumar JAIN July 10, 2016, 10:20 a.m. UTC
  Initializing the authentication op parameter.

Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations")

Signed-off-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
---
 app/test/test_cryptodev.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Thomas Monjalon July 10, 2016, 12:52 p.m. UTC | #1
2016-07-10 11:20, Deepak Kumar Jain:
> Initializing the authentication op parameter.
> 
> Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations")
> 
> Signed-off-by: Deepak Kumar Jain <deepak.k.jain@intel.com>

Applied, thanks
  

Patch

diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c
index 9dfe34f..72f768b 100644
--- a/app/test/test_cryptodev.c
+++ b/app/test/test_cryptodev.c
@@ -3002,6 +3002,7 @@  create_gcm_session(uint8_t dev_id, enum rte_crypto_cipher_operation op,
 	ut_params->cipher_xform.next = NULL;
 
 	ut_params->cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_GCM;
+	ut_params->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_GENERATE;
 	ut_params->cipher_xform.cipher.op = op;
 	ut_params->cipher_xform.cipher.key.data = cipher_key;
 	ut_params->cipher_xform.cipher.key.length = key_len;