]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam - set descriptor sharing type to SERIAL
authorKim Phillips <kim.phillips@freescale.com>
Fri, 13 Jul 2012 22:49:28 +0000 (17:49 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 1 Aug 2012 09:47:31 +0000 (17:47 +0800)
commitc1d83d57bdeb3a39b42e2fb9e060557367d574f1
tree265d8f59f76c2e6ff8aba29ea4663dff4033ab0a
parenteb6bc37f81c244b2bef32a613cfed2f186e6a940
crypto: caam - set descriptor sharing type to SERIAL

SHARE_WAIT, whilst more optimal for association-less crypto,
has the ability to start thrashing the CCB descriptor/key
caches, given high levels of traffic across multiple security
associations (and thus keys).

Switch to using the SERIAL sharing type, which prefers
the last used CCB for the SA.  On a 2-DECO platform
such as the P3041, this can improve performance by
about 3.7%.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c
drivers/crypto/caam/caamhash.c
drivers/crypto/caam/caamrng.c