crypto: hisilicon - update SEC driver module parameter
authorLongfang Liu <liulongfang@huawei.com>
Mon, 8 Jun 2020 14:01:11 +0000 (22:01 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Jun 2020 07:26:42 +0000 (17:26 +1000)
commit57b1aac1b426b7255afa195298ed691ffea204c6
tree770b5cf2277ea0fa76586040e4d324ef619779d2
parent3906f640224dbe7714b52b66d7d68c0812808e19
crypto: hisilicon - update SEC driver module parameter

As stress-ng running SEC engine on the Ubuntu OS,
we found that SEC only supports two threads each with one TFM
based on the default module parameter 'ctx_q_num'.
If running more threads, stress-ng will fail since it cannot
get more TFMs.

In order to fix this, we adjusted the default values
of the module parameters to support more TFMs.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Zaibo Xu <xuzaibo@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_main.c