Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/opencrypto Change control knob for /dev/crypto to only ...



details:   https://anonhg.NetBSD.org/src/rev/eabd75387ae0
branches:  trunk
changeset: 566147:eabd75387ae0
user:      jonathan <jonathan%NetBSD.org@localhost>
date:      Thu Apr 29 02:17:36 2004 +0000

description:
Change control knob  for /dev/crypto to only allow requests which
will be hardware-accelerated. Avoids copyin()/copyout() overhead and
spending exceessive tie inside the kernel.

Pullup after: 24 hours, or confirmation by Jason Thorpe that this is the
consensus tech-kern agreed upon last summer.

diffstat:

 sys/opencrypto/crypto.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3b98e5a93ac0 -r eabd75387ae0 sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c   Thu Apr 29 02:14:52 2004 +0000
+++ b/sys/opencrypto/crypto.c   Thu Apr 29 02:17:36 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crypto.c,v 1.8 2003/12/31 16:44:26 jonathan Exp $ */
+/*     $NetBSD: crypto.c,v 1.9 2004/04/29 02:17:36 jonathan Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $   */
 /*     $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */
 
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.8 2003/12/31 16:44:26 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.9 2004/04/29 02:17:36 jonathan Exp $");
 
 /* XXX FIXME: should be defopt'ed */
 #define CRYPTO_TIMING                  /* enable cryptop timing stuff */
@@ -117,7 +117,7 @@
  * crypto_devallowsoft > 0:  Allow user requests only for transforms which
  *                               are hardware-accelerated.
  */
-int    crypto_devallowsoft = 0;        /* only use hardware crypto for asym */
+int    crypto_devallowsoft = 1;        /* only use hardware crypto */
 
 #ifdef __FreeBSD__
 SYSCTL_INT(_kern, OID_AUTO, usercrypto, CTLFLAG_RW,



Home | Main Index | Thread Index | Old Index