-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have made a number of changes to the OCF level1 API.
I admit that the primary motivation for this is to permit easier
performance benchmarking --- still it can be difficult to be *sure*
which piece of code is being used.
The code is available at for Linux at:
http://git.openswan.org/public/scm/klips#ocf_v2.6.16
http://hifn.xelerance.com/cookbook.git/.git
The cookbook is where you will find the cryptotest program.
Notes:
1) previous versions had KGDB patched in as well, this version
does not, but I will likely provide a KGDB patch for 2.6.16
if I can do it easily, on a seperate branch.
2) The CIOCSESSION ioctl's "session_op" structure has been augumented
with a field called "crypto_device_name". This is filled in by the
driver when the session is initialized to be the name of the driver
being used. e.g:
"cryptosoft"
"hifn-vulcan"
So, cryptotest can output things like:
cryptosoft 2.961 sec, 2048 3des crypts, 8192 bytes, 5666233
byte/sec, 43.2 Mb/sec
hifn-vulcan 0.065 sec, 2048 3des crypts, 8 bytes, 251678
byte/sec, 1.9 Mb/sec
There is a script in the cookbook, under Milestone1 called "drawgraphs", which
makes png files using gnuplot of the results. We will post these to
http://hifn.xelerance.com/
once we are satisfied that we understand the numbers we got.
3) many of the MODULE_PARM() macros have been changed to module_param().
This means that the module parameters, even for statically linked
components, show up in:
/sys/module/{cryptodev,cryptosoft,hifn,ocf}/parameters
This includes:
/sys/module/cryptodev/parameters/debug - set 1 to enable dprintk()
/sys/module/cryptodev/parameters/crypto_devsel
set to: -1 CRYPTO_ANYDEVICE - use anything available (default)
-2 CRYPTO_ANYHARDWARE - use hardware only
-3 CRYPTO_ANYSOFTWARE - use any software only
0 CRYPTO_SOFTWARE - use (synchronous) cryptosoft
X a specific hid -- use that driver only
This is also the new flags to crypto_newsession().
/sys/module/cryptosoft/parameters/swcr_id readonly
The hid of the cryptosoft driver. Should always be 0.
/sys/module/cryptosoft/parameters/debug - set to 1 to enable dprintk()
/sys/module/ocf/parameters/debug - set to 1 to enable dprintk()
/sys/module/ocf/parameters/crypto_q_max - tuning parameters
/sys/module/ocf/parameters/crypto_verbose - verbose (vs debugging)
/sys/module/ocf/parameters/crypto_userasymcrypto
/sys/module/ocf/parameters/crypto_devallowsoft - permit cryptosoft to be
found
/sys/module/hifn7751/parameters/debug - set to 1 to enable dprintk()
/sys/module/hifn7751/parameters/hifn_maxbatch - maximum size of work queue
/sys/module/hifn7751/parameters/hifn_pllconfig - string, indicates pllconfig.
(see code)
4) the hifn7751 driver now has some values in /sys as well, listed by
PCI device.
jarvis:~# find /sys/bus/pci/drivers/hifn
/sys/bus/pci/drivers/hifn <- basic driver controls.
/sys/bus/pci/drivers/hifn/new_id
/sys/bus/pci/drivers/hifn/bind
/sys/bus/pci/drivers/hifn/unbind
/sys/bus/pci/drivers/hifn/0000:01:08.0 <- a specific instance
jarvis:~# find /sys/bus/pci/drivers/hifn/0000\:01\:08.0/.
/sys/bus/pci/drivers/hifn/0000:01:08.0/./resource2
/sys/bus/pci/drivers/hifn/0000:01:08.0/./resource1
/sys/bus/pci/drivers/hifn/0000:01:08.0/./resource0
/sys/bus/pci/drivers/hifn/0000:01:08.0/./config
/sys/bus/pci/drivers/hifn/0000:01:08.0/./driver
/sys/bus/pci/drivers/hifn/0000:01:08.0/./cryptoid <- the hid of this card.
/sys/bus/pci/drivers/hifn/0000:01:08.0/./bus
/sys/bus/pci/drivers/hifn/0000:01:08.0/./modalias
/sys/bus/pci/drivers/hifn/0000:01:08.0/./local_cpus
/sys/bus/pci/drivers/hifn/0000:01:08.0/./irq
/sys/bus/pci/drivers/hifn/0000:01:08.0/./class
/sys/bus/pci/drivers/hifn/0000:01:08.0/./subsystem_device
/sys/bus/pci/drivers/hifn/0000:01:08.0/./subsystem_vendor
/sys/bus/pci/drivers/hifn/0000:01:08.0/./device
/sys/bus/pci/drivers/hifn/0000:01:08.0/./vendor
/sys/bus/pci/drivers/hifn/0000:01:08.0/./resource
/sys/bus/pci/drivers/hifn/0000:01:08.0/./power
/sys/bus/pci/drivers/hifn/0000:01:08.0/./power/wakeup
/sys/bus/pci/drivers/hifn/0000:01:08.0/./power/state
/sys/bus/pci/drivers/hifn/0000:01:08.0/./uevent
5) Most of the drivers are now in subdirectories. That's the only way to make
both static and module builds work, when patched into the kernel source tree.
- --
] ON HUMILITY: to err is human. To moo, bovine. | firewalls [
] Michael Richardson, Xelerance Corporation, Ottawa, ON |net architect[
] [EMAIL PROTECTED] http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
"The Microsoft _Get the Facts CD_ does not work on Linux." - orospakr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Finger me for keys
iQEVAwUBRH4lgYCLcPvd0N1lAQJowQf/SaVcsb8xOkS2aYFgV1bK3RChqXTPgtYX
H3si9JuZFZ94qS8Pb3uvmbXLT129jHisApc9W+iBZ5DDSqBstTE3WTlD4jl5n+ao
5MIG4n1K2eCxBoJQLv420sZ6zqN3fImn88E4ij8Cby7XjFHWS2gV34MgZJLR6010
id8YH29wAx+Bt7mVPJaj/sqCGXPYTEPbsIbCSH/TYMuevb6vJexEW3KsFsutM2cq
AzuX6rZUmO22TsJ1fV/1mDoQ/Hr9FpGzDi16of3Hz3IYOyB8xBIgQyGwjgLfg42z
iPQgdrZXN9sbiVcPL2MWE2cFClpwbOUrsBMYLsdefIhnFie51scYxQ==
=7s2E
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html