]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-sham - set sw fallback to 240 bytes
authorBin Liu <b-liu@ti.com>
Wed, 22 Jun 2016 13:23:37 +0000 (16:23 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jun 2016 13:24:58 +0000 (21:24 +0800)
commit9b92a4c18da29ae49da75482715394a4d69a889f
treeead9be3534d0d5bfe7f5375178c9d1c90b5b6f8b
parent01bd54140a6bcef5cc90c28e47ce0fd6314dc191
crypto: omap-sham - set sw fallback to 240 bytes

Adds software fallback support for small crypto requests. In these cases,
it is undesirable to use DMA, as setting it up itself is rather heavy
operation. Gives about 40% extra performance in ipsec usecase.

Signed-off-by: Bin Liu <b-liu@ti.com>
[t-kristo@ti.com: dropped the extra traces, updated some comments
 on the code]
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c