summaryrefslogtreecommitdiff
path: root/crypto/aead.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-14 22:28:14 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:55 +1100
commitdd7f1b0ae38a2807461079d386ade14a9c941274 (patch)
tree58fd64c003b465f36c6e9020621a9972233625ef /crypto/aead.c
parent06a1e45934bca7e75d3fa40ee0bea55c568635ca (diff)
downloadlinux-crypto-dd7f1b0ae38a2807461079d386ade14a9c941274.tar.gz
linux-crypto-dd7f1b0ae38a2807461079d386ade14a9c941274.zip
[CRYPTO] chainiv: Avoid lock spinning where possible
This patch makes chainiv avoid spinning by postponing requests on lock contention if the user allows the use of asynchronous algorithms. If a synchronous algorithm is requested then we behave as before. This should improve IPsec performance on SMP when two CPUs attempt to transmit over the same SA. Currently one of them will spin doing nothing waiting for the other CPU to finish its encryption. This patch makes it postpone the request and get on with other work. If only one CPU is transmitting for a given SA, then we will process the request synchronously as before. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions