cryptodev: add reference count to session private data
authorFan Zhang <roy.fan.zhang@intel.com>
Thu, 10 Jan 2019 14:50:21 +0000 (14:50 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 10 Jan 2019 15:57:22 +0000 (16:57 +0100)
commit5d6c73dd59381fbcb80340b08da678b86394391a
tree753683d4fe863bde478a77dae7af847d55392c39
parent9e5f5ecb5eb6ce243b9835735b37c5959ec7dd6b
cryptodev: add reference count to session private data

This patch adds a refcnt field to every session private data in the
cryptodev symmetric session. The counter is used to prevent freeing
symmetric session blindly before it is not cleared by every type of
crypto device in use.

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
doc/guides/prog_guide/img/cryptodev_sym_sess.svg
doc/guides/rel_notes/release_19_02.rst
lib/librte_cryptodev/rte_cryptodev.c
lib/librte_cryptodev/rte_cryptodev.h