crypto/aesni_mb: fix incorrect crypto session
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Mon, 19 Dec 2016 17:29:00 +0000 (17:29 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 18 Jan 2017 20:47:04 +0000 (21:47 +0100)
commit3413354ea1fe2ea10718a30e14516f61f15aaba1
tree8313d1c0b85ca86825f0b50a93fba935a6b48adb
parentf3dbf94be60cb02b5380bbd32d5724c48de8cbd2
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>
drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c