diff options
author | Zhou Wang <wangzhou1@hisilicon.com> | 2019-10-26 11:00:16 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-11-01 13:42:47 +0800 |
commit | 700f7d0d29c795c36517dcd3541e4432a76c2efc (patch) | |
tree | fd10d926f7904cf8446f7d2b0a5209ff49ae58dd /drivers/ipack | |
parent | f0c8b6a1e1454f1645463e8ffb3e027fc597867c (diff) |
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>
Diffstat (limited to 'drivers/ipack')
0 files changed, 0 insertions, 0 deletions