K 10 svn:author V 3 sam K 8 svn:date V 27 2002-12-17T18:15:06.000000Z K 7 svn:log V 1281 Revise processing of crypto ops for better performance. Rather than context switch to a kernel thread to dispatch each request use a software interrupt to invoke the dispatching logic. Also, and almost as important, decouple callbacks done when ops complete from the dispatch thread. These are done in a kernel thread (as opposed to a swi context) so that clients of the crypto system don't need to be concerned with blocking crypto-related interrupts. Specific changes: o splimp's -> splcrypto's because entry to the crypto code can come at splsoftcrypto now o add system-wide statistics for the crypto system o add timing statistics for crypto ops as they pass through the system to help in analyzing performance; these are conditionally compiled in under CRYPTO_TIMING and enabled with a debug.crypto_timing sysctl o purge an unused entry from the cryptop data structure o change some wakeup's to wakeup_one since we know there's only one proc waiting o check error return from crypto_invoke in /dev/crypto support o bzero zalloc'd data in crypto_getreq (missed in previous MFC) Note: these changes are not relevant to -current because swi's are implemented with kthreads. Sponsored by: Vernier Networks Inspired by: Jonathan Stone END