]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit85e0687f8fac9032681b163a17f806b52205922e
treeead9be3534d0d5bfe7f5375178c9d1c90b5b6f8b
parentb973eaab68db858cb42f5283b1b0ed6773d8fdd9
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