crypto/octeontx2: fix session-less mode
authorAnkur Dwivedi <adwivedi@marvell.com>
Fri, 18 Sep 2020 13:45:45 +0000 (19:15 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 14 Oct 2020 19:06:56 +0000 (21:06 +0200)
commit4a35a46409eb59bb55102120946503920d41f7de
tree8a2a3e143838ea2815d2608d4436a481364037a1
parent3cd73a1a1c4d99439a6883c37a4ba4b561325615
crypto/octeontx2: fix session-less mode

A temporary session is created for sessionless crypto operations.
rte_cryptodev_sym_session_create() should be used for creating the
temporary session as it initializes the session structure in the
correct way. Also the session should be set to 0 before freeing it.

Fixes: 17ac2a72191b ("crypto/octeontx2: add enqueue/dequeue ops")
Cc: stable@dpdk.org
Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
drivers/crypto/octeontx2/otx2_cryptodev_ops.c