patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH v3 1/4] crypto/aesni_mb: fix incorrect crypto session
       [not found] ` <1482168543-40289-1-git-send-email-pablo.de.lara.guarch@intel.com>
@ 2016-12-19 17:29   ` Pablo de Lara
  2016-12-20 21:18     ` Declan Doherty
  0 siblings, 1 reply; 2+ messages in thread
From: Pablo de Lara @ 2016-12-19 17:29 UTC (permalink / raw)
  To: declan.doherty; +Cc: dev, Pablo de Lara, stable

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")

CC: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
 drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 1 +
 1 file changed, 1 insertion(+)

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;
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-stable] [PATCH v3 1/4] crypto/aesni_mb: fix incorrect crypto session
  2016-12-19 17:29   ` [dpdk-stable] [PATCH v3 1/4] crypto/aesni_mb: fix incorrect crypto session Pablo de Lara
@ 2016-12-20 21:18     ` Declan Doherty
  0 siblings, 0 replies; 2+ messages in thread
From: Declan Doherty @ 2016-12-20 21:18 UTC (permalink / raw)
  To: Pablo de Lara; +Cc: dev, stable

On 19/12/16 17:29, Pablo de Lara wrote:
> 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")
>
> CC: stable@dpdk.org
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
> ---
>  drivers/crypto/aesni_mb/rte_aesni_mb_pmd.c | 1 +
>  1 file changed, 1 insertion(+)
>
> 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;
>
Acked-by: Declan Doherty <declan.doherty@intel.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-20 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1481817632-183082-1-git-send-email-pablo.de.lara.guarch@intel.com>
     [not found] ` <1482168543-40289-1-git-send-email-pablo.de.lara.guarch@intel.com>
2016-12-19 17:29   ` [dpdk-stable] [PATCH v3 1/4] crypto/aesni_mb: fix incorrect crypto session Pablo de Lara
2016-12-20 21:18     ` Declan Doherty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).