kernel - Add SMP support for software crypto driver
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 20 Aug 2010 02:29:03 +0000 (19:29 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 20 Aug 2010 02:29:03 +0000 (19:29 -0700)
commita0419b3343492f40c07184aa78b395501b813e14
tree40f09aee85394e7d3502537bb4d4d584eeb8e5c9
parentbe13c4731242932588d22c4302953becf28d211e
kernel - Add SMP support for software crypto driver

* Create a crypto thread for each cpu.

* Run the threads without the MP lock.

* Dispatch to the threads round-robin.
sys/opencrypto/crypto.c
sys/opencrypto/cryptodev.c
sys/opencrypto/cryptodev.h
sys/opencrypto/cryptosoft.c
sys/opencrypto/cryptosoft.h
sys/opencrypto/deflate.c
sys/opencrypto/xform.c