mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
crypto: qat - extend buffer list interface
[ Upstream commitcf692906bd] The compression service requires an additional pre-allocated buffer for each destination scatter list. Extend the function qat_alg_sgl_to_bufl() to take an additional structure that contains the dma address and the size of the extra buffer which will be appended in the destination FW SGL. The logic that unmaps buffers in qat_alg_free_bufl() has been changed to start unmapping from buffer 0 instead of skipping the initial buffers num_buff - num_mapped_bufs as that functionality was not used in the code. Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Wojciech Ziemba <wojciech.ziemba@intel.com> Reviewed-by: Adam Guerin <adam.guerin@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Stable-dep-of:9b2f33a1bf("crypto: qat - fix unregistration of crypto algorithms") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
443bde2a4c
commit
5e989aeb40
3 changed files with 54 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue