Spdk/lib/bdev/crypto
Darek Stojaczyk 40240f7e9d bdev/crypto: release qpairs on module finish
We setup the qpairs on module init but never
released them. Some memory was leaked, although since
it was allocated with rte_malloc() it couldn't be
picked up by ASAN.

rte_cryptodev API offers rte_cryptodev_queue_pair_setup()
to setup a qpair, but there's no equivalent function to
release it. We have to access the rte_cryptodev structure
directly and call a qpair release function ptr that's
stored inside. It seems very very hacky, but the entire
rte_cryptodev structure is a part of the public API and
the global array of all such devices is an exported
symbol.

Change-Id: I17ac73d1098ca9a92d2dfd52e0f905e2c2b5488f
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/443561
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-02-11 19:43:03 +00:00
..
Makefile bdev: remove "v" prefix from vbdev library names 2018-11-01 21:25:55 +00:00
vbdev_crypto_rpc.c crypto: fix file permissions 2018-09-28 18:50:16 +00:00
vbdev_crypto.c bdev/crypto: release qpairs on module finish 2019-02-11 19:43:03 +00:00
vbdev_crypto.h crypto: fix file permissions 2018-09-28 18:50:16 +00:00