Loading
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>