Spdk/lib/bdev
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
..
aio bdev/aio: Set minimum events to 0 in io_getevents 2019-02-08 16:36:18 +00:00
crypto bdev/crypto: release qpairs on module finish 2019-02-11 19:43:03 +00:00
error bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
ftl bdev/ftl: write_config_json support 2019-02-08 16:35:34 +00:00
gpt bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
iscsi bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
lvol bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
malloc Make: Add deps for each shared obj individually 2018-10-09 21:45:26 +00:00
null bdev/null: Remove clearing errno duplicated with spdk_strtol 2019-01-29 17:39:18 +00:00
nvme string: spdk_strtol to delegate additional error checking 2019-01-29 00:10:57 +00:00
ocf OCF: add support of write_json_config 2019-01-29 06:10:36 +00:00
passthru bdev/passthru: add notice when base bdev not available at create time 2019-02-01 12:37:34 +00:00
pmem bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
raid bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
rbd bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
rpc lib/bdev: Expose enabled DIF check types of bdev. 2019-02-08 23:37:13 +00:00
split bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
virtio bdev: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
bdev.c lib/bdev: Expose enabled DIF check types of bdev. 2019-02-08 23:37:13 +00:00
Makefile OCF: add OCF module 2019-01-28 09:41:52 +00:00
part.c bdev: Improve spdk_bdev_open() to print string describing error number 2019-01-24 10:50:34 +00:00
scsi_nvme.c bdev: move error union to internal spdk_bdev_io struct 2018-06-26 20:04:07 +00:00
vtune.c mk: don't use '-include spdk/config.h' 2018-10-02 23:13:32 +00:00