summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo de Lara <pablo.de.lara.guarch@intel.com>2016-12-19 17:29:00 +0000
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2017-01-18 21:47:04 +0100
commit3413354ea1fe2ea10718a30e14516f61f15aaba1 (patch)
tree8313d1c0b85ca86825f0b50a93fba935a6b48adb
parentf3dbf94be60cb02b5380bbd32d5724c48de8cbd2 (diff)
downloaddpdk-3413354ea1fe2ea10718a30e14516f61f15aaba1.zip
dpdk-3413354ea1fe2ea10718a30e14516f61f15aaba1.tar.gz
dpdk-3413354ea1fe2ea10718a30e14516f61f15aaba1.tar.xz
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 <pablo.de.lara.guarch@intel.com> Acked-by: Declan Doherty <declan.doherty@intel.com>
-rw-r--r--drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c b/drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c
index f07cd07..7443b47 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;