diff options
author | Sam Leffler <sam@FreeBSD.org> | 2007-03-21 03:42:51 +0000 |
---|---|---|
committer | Sam Leffler <sam@FreeBSD.org> | 2007-03-21 03:42:51 +0000 |
commit | 6810ad6f2aeb6f6076d535c55a3e58f4b3358e79 (patch) | |
tree | 05fc03ec94859546cbef49b9fe30d492c4f7bf19 /sys/netipsec | |
parent | 41f5bd0f6dc8a92fde5135b6c674e35d4b96501e (diff) | |
download | src-6810ad6f2aeb6f6076d535c55a3e58f4b3358e79.tar.gz src-6810ad6f2aeb6f6076d535c55a3e58f4b3358e79.zip |
Overhaul driver/subsystem api's:
o make all crypto drivers have a device_t; pseudo drivers like the s/w
crypto driver synthesize one
o change the api between the crypto subsystem and drivers to use kobj;
cryptodev_if.m defines this api
o use the fact that all crypto drivers now have a device_t to add support
for specifying which of several potential devices to use when doing
crypto operations
o add new ioctls that allow user apps to select a specific crypto device
to use (previous ioctls maintained for compatibility)
o overhaul crypto subsystem code to eliminate lots of cruft and hide
implementation details from drivers
o bring in numerous fixes from Michale Richardson/hifn; mostly for
795x parts
o add an optional mechanism for mmap'ing the hifn 795x public key h/w
to user space for use by openssl (not enabled by default)
o update crypto test tools to use new ioctl's and add cmd line options
to specify a device to use for tests
These changes will also enable much future work on improving the core
crypto subsystem; including proper load balancing and interposing code
between the core and drivers to dispatch small operations to the s/w
driver as appropriate.
These changes were instigated by the work of Michael Richardson.
Reviewed by: pjd
Approved by: re
Notes
Notes:
svn path=/head/; revision=167755
Diffstat (limited to 'sys/netipsec')
-rw-r--r-- | sys/netipsec/ipsec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c index 65a53c006852..3766f8c85ca4 100644 --- a/sys/netipsec/ipsec.c +++ b/sys/netipsec/ipsec.c @@ -117,7 +117,7 @@ int ip4_esp_randpad = -1; * -1 require software support * 0 take anything */ -int crypto_support = 0; +int crypto_support = CRYPTOCAP_F_HARDWARE | CRYPTOCAP_F_SOFTWARE; SYSCTL_DECL(_net_inet_ipsec); |