Soekris vpn1411 (Hifn 7955) not working
Jukka Salmi <[email protected]> Wed, 4 Jun 2008 18:55:59 +0200
| Newsgroups | gmane.os.netbsd.devel.embedded |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm trying to use a vpn1411 crypto accelerator with a Soekris net4511 running NetBSD/i386 4.0_STABLE. However, it doesn't seem to work: $ dmesg [...] hifn0 at pci0 dev 16 function 0: Hifn 7955, rev. 0 hifn0: 3DES/AES, 32KB dram, interrupting at irq 11 [...] The kernel config file contains the `pseudo-device crypto'. $ ls -l /dev/crypto crw-rw-rw- 1 root wheel 160, 0 Jun 2 14:35 /dev/crypto $ sysctl kern.usercrypto kern.usercrypto = 1 $ openssl speed -elapsed -evp des [...] Doing des-cbc for 3s on 16 size blocks: 78587 des-cbc's in 3.01s Doing des-cbc for 3s on 64 size blocks: 21093 des-cbc's in 3.00s Doing des-cbc for 3s on 256 size blocks: 5371 des-cbc's in 3.00s Doing des-cbc for 3s on 1024 size blocks: 1346 des-cbc's in 3.01s Doing des-cbc for 3s on 8192 size blocks: 167 des-cbc's in 3.01s OpenSSL 0.9.8e 23 Feb 2007 built on: NetBSD 4.0_STABLE options:bn(32,32) md2(int) rc4(ptr,int) des(ptr,risc2,16,long) aes(partial) blowfish(ptr2) compiler: gcc version 4.1.2 20061021 (prerelease) (NetBSD nb3 20061125) available timing options: USE_TOD HZ=100 [sysconf value] timing function used: gettimeofday The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes des-cbc 418.00k 449.26k 457.64k 458.61k 454.36k $ sudo sysctl -w kern.usercrypto=0 kern.usercrypto: 1 -> 0 $ openssl speed -elapsed -evp des [...] Doing des-cbc for 3s on 16 size blocks: 78384 des-cbc's in 3.00s Doing des-cbc for 3s on 64 size blocks: 21007 des-cbc's in 3.00s Doing des-cbc for 3s on 256 size blocks: 5362 des-cbc's in 3.00s Doing des-cbc for 3s on 1024 size blocks: 1343 des-cbc's in 3.01s Doing des-cbc for 3s on 8192 size blocks: 167 des-cbc's in 3.01s OpenSSL 0.9.8e 23 Feb 2007 built on: NetBSD 4.0_STABLE options:bn(32,32) md2(int) rc4(ptr,int) des(ptr,risc2,16,long) aes(partial) blowfish(ptr2) compiler: gcc version 4.1.2 20061021 (prerelease) (NetBSD nb3 20061125) available timing options: USE_TOD HZ=100 [sysconf value] timing function used: gettimeofday The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes des-cbc 417.90k 447.50k 456.80k 457.50k 454.72k Is this card (or the vpn1401 or some other card using a hifn 7955) working for anybody? Hints are appreciated! TIA, Jukka -- bashian roulette: $ ((RANDOM%6)) || rm -rf ~