Re: [PATCH] crypto: hisilicon - fix to return sub-optimal device when best device has no qps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2019/11/1 14:13, Herbert Xu wrote:
> On Sat, Oct 26, 2019 at 11:00:16AM +0800, Zhou Wang wrote:
>> 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@xxxxxxxxxxxxx>
>> Signed-off-by: Shukun Tan <tanshukun1@xxxxxxxxxx>
>> ---
>>  drivers/crypto/hisilicon/qm.c           | 21 ++++++++++
>>  drivers/crypto/hisilicon/qm.h           |  2 +
>>  drivers/crypto/hisilicon/zip/zip_main.c | 74 ++++++++++++++++++++++++---------
>>  3 files changed, 77 insertions(+), 20 deletions(-)
> 
> Patch applied.  Thanks.

Thanks.

> 




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux