linux_dsm_epyc7002/drivers/crypto/hisilicon
Zhou Wang 700f7d0d29 crypto: hisilicon - fix to return sub-optimal device when best device has no qps
Currently find_zip_device() finds zip device which has the min NUMA
distance with current CPU.

This patch modifies find_zip_device to return sub-optimal device when best
device has no qps. This patch sorts all devices by NUMA distance, then
finds the best zip device which has free qp.

Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-11-01 13:42:47 +08:00
..
hpre crypto: hisilicon: Fix misuse of GENMASK macro 2019-10-23 19:47:00 +11:00
sec crypto: hisilicon - Matching the dma address for dma_pool_free() 2019-09-20 22:53:09 +10:00
zip crypto: hisilicon - fix to return sub-optimal device when best device has no qps 2019-11-01 13:42:47 +08:00
Kconfig crypto: hisilicon - use sgl API to get sgl dma addr and len 2019-11-01 13:42:47 +08:00
Makefile crypto: hisilicon - add HiSilicon HPRE accelerator 2019-10-10 23:36:31 +11:00
qm.c crypto: hisilicon - fix to return sub-optimal device when best device has no qps 2019-11-01 13:42:47 +08:00
qm.h crypto: hisilicon - fix to return sub-optimal device when best device has no qps 2019-11-01 13:42:47 +08:00
sgl.c crypto: hisilicon - use sgl API to get sgl dma addr and len 2019-11-01 13:42:47 +08:00