]> 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)
commit1b2dedd1428dbf1e716eefbebeab80973e1fa197
tree265d8f59f76c2e6ff8aba29ea4663dff4033ab0a
parent522331e2e76804996506ff64fb2f1a6764436274
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