]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] hifn: Schedule callback invocation to tasklet.
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Sat, 10 Nov 2007 12:24:18 +0000 (20:24 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:12 +0000 (08:16 +1100)
commit2243e9cc873d565d70e02fb9ccc037fc3e6059bd
treeb061de93924ff3d4804c04ea7ed85990bb3161b4
parentd77f9d69eff9d4eb52058b91415645e18b556998
[CRYPTO] hifn: Schedule callback invocation to tasklet.

This patch forces HIFN driver to invoke crypto request callbacks from
tasklet (softirq context) instead of hardirq context, since network
stack expects it to be called from bottom halves.

It is done by simply scheduling callback invocation via dedicated
tasklet. Workqueue solution was dropped because of tooo slow
rescheduling performance (7 times slower than tasklet, for mode details
one can check this link:
http://tservice.net.ru/~s0mbre/blog/devel/other/2007_11_09.html).

Driver passed all AES and DES tests in tcryt.c module.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hifn_795x.c