Re: [PATCH 2/3] crypto: Per-CPU cryptd thread implementation based on kcrypto_wq

2009-02-03 Thread Huang Ying
On Tue, 2009-02-03 at 17:10 +0800, Andrew Morton wrote: > On Mon, 02 Feb 2009 14:42:20 +0800 Huang Ying wrote: > > > Original cryptd thread implementation has scalability issue, this > > patch solve the issue with a per-CPU thread implementation. > > > > struct cryptd_queue is defined to be a pe

Re: crypto: sha-s390 - Switch to shash

2009-02-03 Thread Herbert Xu
On Tue, Feb 03, 2009 at 03:16:22PM +, Jan Glauber wrote: > > With this little typo-patch shash works fine on s390. I'll fold this into the patch before pushing. Thanks for testing! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.

Re: crypto: sha-s390 - Switch to shash

2009-02-03 Thread Jan Glauber
On Tue, 2009-02-03 at 12:48 +1100, Herbert Xu wrote: > On Mon, Feb 02, 2009 at 06:01:07PM +, Jan Glauber wrote: > > > > The patch is not yet in cryptodev, so I applied it on top of cryptodev. > > Compiling it gives me the following error: > > > > CC [M] arch/s390/crypto/sha256_s390.o > > arc

Re: [PATCH 2/3] crypto: Per-CPU cryptd thread implementation based on kcrypto_wq

2009-02-03 Thread Herbert Xu
On Tue, Feb 03, 2009 at 01:10:38AM -0800, Andrew Morton wrote: > > > +{ > > + struct cryptd_cpu_queue *cpu_queue; > > + struct crypto_async_request *req, *backlog; > > + > > + cpu_queue = container_of(work, struct cryptd_cpu_queue, work); > > + /* Only handle one request at a time to avoid

Re: [PATCH 2/3] crypto: Per-CPU cryptd thread implementation based on kcrypto_wq

2009-02-03 Thread Andrew Morton
On Mon, 02 Feb 2009 14:42:20 +0800 Huang Ying wrote: > Original cryptd thread implementation has scalability issue, this > patch solve the issue with a per-CPU thread implementation. > > struct cryptd_queue is defined to be a per-CPU queue, which holds one > struct cryptd_cpu_queue for each CPU.