From: Pablo de Lara Date: Mon, 19 Dec 2016 17:29:00 +0000 (+0000) Subject: crypto/aesni_mb: fix incorrect crypto session X-Git-Tag: spdx-start~4714 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3413354ea1fe2ea10718a30e14516f61f15aaba1;p=dpdk.git crypto/aesni_mb: fix incorrect crypto session When using sessionless crypto operations, crypto session is obtained from a pool of sessions, when processing the operation. Once the operation is processed, the session is put back in the pool, but for the AESNI MB PMD, this session was not being saved in the operation and therefore, it did not return to the session pool. Fixes: 924e84f87306 ("aesni_mb: add driver for multi buffer based crypto") Signed-off-by: Pablo de Lara Acked-by: Declan Doherty --- diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c index f07cd077c5..7443b47b91 100644 --- a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c +++ b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c @@ -322,6 +322,7 @@ get_session(struct aesni_mb_qp *qp, struct rte_crypto_op *op) rte_mempool_put(qp->sess_mp, _sess); sess = NULL; } + op->sym->session = (struct rte_cryptodev_sym_session *)_sess; } return sess;