Re: [Cryptodev-linux-devel] openvpn issues with crytodev

2013-12-04 Thread Nikos Mavrogiannopoulos
On Wed, Dec 4, 2013 at 11:21 AM, Karl Hiramoto wrote: >> Could you then try modifying main.c, at crypto_run() to set the >> COP_FLAG_NO_ZC if there is no 16-byte alignment? If that fixes the >> issue, we should see how we can handle it depending on the driver. > Yes, it does fix it. However perf

Re: [Cryptodev-linux-devel] openvpn issues with crytodev

2013-12-04 Thread Karl Hiramoto
On 12/04/2013 10:54 AM, Nikos Mavrogiannopoulos wrote: On Wed, 2013-12-04 at 10:20 +0100, Karl Hiramoto wrote: I think the issue might be the memory alignment, the HW wants 16 byte alignment. I do echo 9 > /proc/sys/ioctl/cryptodev_verbosity and start to see messages liks: [ 1102.87] cryp

Re: [Cryptodev-linux-devel] openvpn issues with crytodev

2013-12-04 Thread Nikos Mavrogiannopoulos
On Wed, 2013-12-04 at 10:20 +0100, Karl Hiramoto wrote: > I think the issue might be the memory alignment, the HW wants 16 byte > alignment. > > I do echo 9 > /proc/sys/ioctl/cryptodev_verbosity > > and start to see messages liks: > [ 1102.87] cryptodev: openvpn[693] (get_userbuf:157): care

Re: [Cryptodev-linux-devel] openvpn issues with crytodev

2013-12-04 Thread Karl Hiramoto
On 12/03/2013 11:43 PM, Nikos Mavrogiannopoulos wrote: On Mon, 2013-12-02 at 16:33 +0100, Karl Hiramoto wrote: Hi all, I'm using openssl 1.0.1e and OpenVPN 2.3.2 I'm using the cryptodev-linux/extras/eng_cryptodev.c with openssl [...] Mon Dec 2 14:56:26 2013 us=282785 test1/10.64.1.3:6476

Re: [Cryptodev-linux-devel] openvpn issues with crytodev

2013-12-03 Thread Nikos Mavrogiannopoulos
On Mon, 2013-12-02 at 16:33 +0100, Karl Hiramoto wrote: > Hi all, > > I'm using openssl 1.0.1e and OpenVPN 2.3.2 > > I'm using the cryptodev-linux/extras/eng_cryptodev.c with openssl [...] > Mon Dec 2 14:56:26 2013 us=282785 test1/10.64.1.3:64764 PID_ERR large > diff [1693821396] [SSL-0] > [

[Cryptodev-linux-devel] openvpn issues with crytodev

2013-12-02 Thread Karl Hiramoto
Hi all, I'm using openssl 1.0.1e and OpenVPN 2.3.2 I'm using the cryptodev-linux/extras/eng_cryptodev.c with openssl The cryptodev with "openssl speed" works, i see the crypto HW interrupts in /proc/interrupts increasing while running it, and there is a huge difference in speed with/wit