crypto/qat: fix offset for out-of-place scatter-gather
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Thu, 18 Mar 2021 13:16:17 +0000 (13:16 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 16 Apr 2021 10:43:33 +0000 (12:43 +0200)
commit935da450b414610a3aa2855fb9bb0c6f105e59ba
treea3831827ccec16e6384c986e406f0a144de83873
parent45fe9ea971507ce7f64115398bb00224f43781d3
crypto/qat: fix offset for out-of-place scatter-gather

This commit fixes problem with to small offset when both offsets
(auth, cipher) are non zero in digest encrypt case,
when using out-of-place and sgl.

Fixes: 40002f6c2a24 ("crypto/qat: extend support for digest-encrypted auth-cipher")
Cc: stable@dpdk.org
Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/crypto/qat/qat_sym.c