[dpdk-dev] [PATCH v3 2/4] examples/ipsec-secgw: fix create session also for aead
aviadye at dev.mellanox.co.il
aviadye at dev.mellanox.co.il
Tue Oct 24 14:48:58 CEST 2017
From: Aviad Yehezkel <aviadye at mellanox.com>
Search for session also with aead key
Fixes: 501e9c226adf ("examples/ipsec-secgw: add AEAD parameters")
Cc: stable at dpdk.org
Signed-off-by: Aviad Yehezkel <aviadye at mellanox.com>
--
v3:
* Added fixes string in commit message.
v2:
* Fix commit message.
* Addressed feedback.
---
examples/ipsec-secgw/ipsec.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c
index 0afb9d6..36fb8c8 100644
--- a/examples/ipsec-secgw/ipsec.c
+++ b/examples/ipsec-secgw/ipsec.c
@@ -56,13 +56,17 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa)
key.cipher_algo = (uint8_t)sa->cipher_algo;
key.auth_algo = (uint8_t)sa->auth_algo;
+ key.aead_algo = (uint8_t)sa->aead_algo;
ret = rte_hash_lookup_data(ipsec_ctx->cdev_map, &key,
(void **)&cdev_id_qp);
if (ret < 0) {
RTE_LOG(ERR, IPSEC, "No cryptodev: core %u, cipher_algo %u, "
- "auth_algo %u\n", key.lcore_id, key.cipher_algo,
- key.auth_algo);
+ "auth_algo %u, aead_algo %u\n",
+ key.lcore_id,
+ key.cipher_algo,
+ key.auth_algo,
+ key.aead_algo);
return -1;
}
--
2.7.4
More information about the dev
mailing list