crypto: talitos - ensure request ordering within a single tfm
authorKim Phillips <kim.phillips@freescale.com>
Fri, 15 Jul 2011 03:21:38 +0000 (11:21 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Jul 2011 03:21:38 +0000 (11:21 +0800)
commit5228f0f79e983c2b39c202c75af901ceb0003fc1
tree2694a01e0b400e2aa1f05e6b335a0f1ed233e981
parent625426633d7786f26a33123a9d12bec476bcc3cd
crypto: talitos - ensure request ordering within a single tfm

Assign single target channel per tfm in talitos_cra_init instead of
performing channel scheduling dynamically during the encryption request.
This changes the talitos_submit interface to accept a new channel
number argument.  Without this, rapid bursts of misc. sized requests
could make it possible for IPsec packets to be encrypted out-of-order,
which would result in packet drops due to sequence numbers falling
outside the anti-reply window on a peer gateway.

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