From e37e796206b575d87d652c5c68a96296dbbb8543 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 28 Feb 2019 18:53:22 +0000 Subject: [PATCH 1/3] sysctl.conf: Revert enabling busy loop waiting on sockets This causes the firmware in my ath10k module to crash. Signed-off-by: Michael Tremer --- config/etc/sysctl.conf | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/etc/sysctl.conf b/config/etc/sysctl.conf index 7751bfd8a..9a943fffa 100644 --- a/config/etc/sysctl.conf +++ b/config/etc/sysctl.conf @@ -80,9 +80,5 @@ net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 16384 16777216 net.ipv4.udp_mem = 3145728 4194304 16777216 -# Approximate time in us to busy loop waiting for packets on the device queue -net.core.busy_read=50 -net.core.busy_poll=50 - # Enable TCP fast-open net.ipv4.tcp_fastopen = 3 From eb09c90ef47606f616201fddc5e783149aee9228 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 5 Mar 2019 15:23:33 +0000 Subject: [PATCH 2/3] vpnmain.cgi: Carry over START_ACTION attribute correctly This setting was not carried correctly and therefore the default was ignored. Signed-off-by: Michael Tremer --- html/cgi-bin/vpnmain.cgi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index a5d27c8d8..7489e5390 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -1315,6 +1315,7 @@ END $cgiparams{'DPD_TIMEOUT'} = $confighash{$cgiparams{'KEY'}}[30]; $cgiparams{'DPD_DELAY'} = $confighash{$cgiparams{'KEY'}}[31]; $cgiparams{'FORCE_MOBIKE'} = $confighash{$cgiparams{'KEY'}}[32]; + $cgiparams{'START_ACTION'} = $confighash{$cgiparams{'KEY'}}[33]; $cgiparams{'INACTIVITY_TIMEOUT'} = $confighash{$cgiparams{'KEY'}}[34]; if (!$cgiparams{'DPD_DELAY'}) { @@ -1855,6 +1856,7 @@ END $confighash{$key}[30] = $cgiparams{'DPD_TIMEOUT'}; $confighash{$key}[31] = $cgiparams{'DPD_DELAY'}; $confighash{$key}[32] = $cgiparams{'FORCE_MOBIKE'}; + $confighash{$key}[33] = $cgiparams{'START_ACTION'}; $confighash{$key}[34] = $cgiparams{'INACTIVITY_TIMEOUT'}; # free unused fields! @@ -1985,6 +1987,7 @@ VPNCONF_ERROR: + END ; if ($cgiparams{'KEY'}) { From b15b70bc6b6b5f6d8b62e5b730b68d86f59810e6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 5 Mar 2019 15:24:19 +0000 Subject: [PATCH 3/3] vpnmain.cgi: Make on-demand mode default for IPsec VPNs Signed-off-by: Michael Tremer --- html/cgi-bin/vpnmain.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index 7489e5390..fc15be382 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -109,7 +109,7 @@ $cgiparams{'RW_NET'} = ''; $cgiparams{'DPD_DELAY'} = '30'; $cgiparams{'DPD_TIMEOUT'} = '120'; $cgiparams{'FORCE_MOBIKE'} = 'off'; -$cgiparams{'START_ACTION'} = 'start'; +$cgiparams{'START_ACTION'} = 'route'; $cgiparams{'INACTIVITY_TIMEOUT'} = 900; &Header::getcgihash(\%cgiparams, {'wantfile' => 1, 'filevar' => 'FH'});