Hi,
What debug information should I compile with ? ./Configure -DDEBUG ? Or put 
messages from place to place?
I ran openvpn with verb=7 option but once it hangs nothing came from openvrt in 
log or screen

Thanks


      From: 袁建鹏 <yuanjianp...@tp-link.com.cn>
 To: Spon Spon <spon...@yahoo.com>; "openvpn-users@lists.sourceforge.net" 
<openvpn-users@lists.sourceforge.net> 
 Sent: Tuesday, January 17, 2017 1:17 PM
 Subject: 答复: [Openvpn-users] Openvpn hangs on Hardware acceleration
   
#yiv7495785135 #yiv7495785135 -- _filtered #yiv7495785135 
{font-family:Helvetica;panose-1:2 11 5 4 2 2 2 2 2 4;} _filtered #yiv7495785135 
{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;} _filtered #yiv7495785135 
{panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv7495785135 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv7495785135 
{panose-1:2 11 5 3 2 2 4 2 2 4;} _filtered #yiv7495785135 {panose-1:2 1 6 0 3 1 
1 1 1 1;} _filtered #yiv7495785135 {panose-1:2 11 5 3 2 2 4 2 2 
4;}#yiv7495785135 #yiv7495785135 p.yiv7495785135MsoNormal, #yiv7495785135 
li.yiv7495785135MsoNormal, #yiv7495785135 div.yiv7495785135MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:宋体;}#yiv7495785135
 a:link, #yiv7495785135 span.yiv7495785135MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv7495785135 a:visited, 
#yiv7495785135 span.yiv7495785135MsoHyperlinkFollowed 
{color:#954F72;text-decoration:underline;}#yiv7495785135 
span.yiv7495785135EmailStyle17 {color:windowtext;}#yiv7495785135 
.yiv7495785135MsoChpDefault {font-size:10.0pt;} _filtered #yiv7495785135 
{margin:72.0pt 90.0pt 72.0pt 90.0pt;}#yiv7495785135 
div.yiv7495785135WordSection1 {}#yiv7495785135 Hi Spon    It’s better that add 
some debug information to OpenVPN and recompile it, to see what happens.    
With Best Regards YUAN Jianpeng    发件人: Spon Spon [mailto:spon...@yahoo.com]
发送时间: 2017年1月17日 14:20
收件人: openvpn-users@lists.sourceforge.net
主题: [Openvpn-users] Openvpn hangs on Hardware acceleration       Hi,    I 
installed OpenSSL 1.0.2 having CRYPTODEV and AF_ALG compiled on an ARM 
processor using kernel 3.10 that have a hardware crypto. I ran openssl speed 
test using both cryptodev and af_alg successfully. in /proc/interrupts I can 
see values increment for crypto driver. (However the speed using hardware 
crypto is less than half comparing to not using it but this is another story). 
Now I tried to use openvpn 2.3.14. I compiled it pointing to openssl 1.0.2 and 
tried to check speed using command :
time openvpn --test-crypto --secret /tmp/secret --verb 0 --tun-mtu 20000 
--cipher aes-256-cbc
The command above works fine (it does not use hardware crypto). But as soon as 
I add engine cryptrodev or engine af_alg the command hang , in proc/interrupts 
I can see increment only once, and from time to time in dmesg I received errors 
: waiting to came back form encrypt function timed out. 
Even kill -9 does not have any result. The only way to kill the process is to 
restart the computer.
The driver implemented only asynchronous encrypt and decrypt, and maybe openvpn 
use only synchronous call, and this is maybe why the command hang. But as I 
understand openvpn does encryption and decryption through openssl. And openssl 
works just fine,
I could not use openssl, 1.1 on 3.10 kernel. Openssl compiles fine, but openvpn 
not. So maximum openssl that can be used was 1.0.2
I checked using ldd and openvpn use correct openssl.

So what could be the problem here? Are there any ways to force openvpn using 
asynchronous calls?    Thank You    

   
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to