]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
crypto: hisilicon - Use the offset fields in sqe to avoid need to split scatterlists
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Nov 2019 05:42:57 +0000 (13:42 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:34:45 +0000 (16:34 +0800)
commit484a897ffa3005f16cd9a31efd747bcf8155826f
tree5562120e71555156aed6ddbfc6289bd607d0aa04
parent8debacd60c69beab80736d4af4feca47c2e2bd9e
crypto: hisilicon - Use the offset fields in sqe to avoid need to split scatterlists

We can configure sgl offset fields in ZIP sqe to let ZIP engine read/write
sgl data with skipped data. Hence no need to splite the sgl.

Fixes: 62c455ca853e (crypto: hisilicon - add HiSilicon ZIP accelerator support)
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/Kconfig
drivers/crypto/hisilicon/zip/zip.h
drivers/crypto/hisilicon/zip/zip_crypto.c