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)
commit61bb86bba169507a5f223b94b9176c32c84b4721
tree265d8f59f76c2e6ff8aba29ea4663dff4033ab0a
parent95bcaa39053ff518021572ca00ebf626ee8cbaf8
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