[PATCH] timers: local_clock() is defined in linux/sched.h in kernel below v4.11

2019-06-13 Thread René van Dorst
Fixes: 7a79457255d5 ("global: switch to local_clock()") Signed-off-by: René van Dorst --- src/timers.h | 4 1 file changed, 4 insertions(+) diff --git a/src/timers.h b/src/timers.h index ef1205690915..3af326056f3d 100644 --- a/src/timers.h +++ b/src/timers.h @@ -6,7 +6,11 @

Re: "The OpenWRT Commit" (native chacha20 mips32 support)

2018-05-22 Thread René van Dorst
d 114-117% faster. Poly1305 routine is around ~275% faster. Both compared with generic C version. So you will see a 10-25% improvement in the speed. Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com

Re: RX Errors from Android Peer

2018-04-26 Thread René van Dorst
RX bytes:3674552 (3.5 MiB) TX bytes:21719820 (20.7 MiB) Tunnel is working: test-ipv6.nl shows both my ISP ipv4 and ipv6 address. Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo

[PATCH] Using the wrong variable in loop.

2018-02-08 Thread René van Dorst
Fix compiler error: WireGuard/src/crypto/../selftest/poly1305.h:1497:10: warning: iteration 35u invokes undefined behavior [-Waggressive-loop-optimizations] size_t inlen = poly1305_testvecs[i].input.size; ^ WireGuard/src/crypto/../selftest/poly1305.h:1494:2: note: containing loop f

Re: ARM multitheaded?

2017-11-21 Thread René van Dorst
0 0:01.21 kworker/1:2 Any idea how to debug it and to improve the performance? Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard

ARM multitheaded?

2017-11-21 Thread René van Dorst
Hi Jason, iperf3 -c 10.0.0.1 -t 10 -Z -i 40 -P 3 1 [ 87.7%] Tasks: 29, 9 thr, 83 kthr; 6 running 2 [ 28.5%] Load average: 0.86 0.64 0.87 3 [|||

Re: netns.sh stuck at ncat.

2017-11-20 Thread René van Dorst
) { pretty "${1//*-}" "wait for tcp:"; while [[ $(ss -N "$1" -tlp 'sport = ') != *ncat* ]]; do sleep 0.1; done; } waitiface() { pretty "${1//*-}" "wait for $2 to come up"; ip netns exec "$1" bash -c "while [

netns.sh stuck at ncat.

2017-11-20 Thread René van Dorst
revision: 5 Hardware: Marvell Dove Revision: Serial : gcc version 7.0.1 20170309 (Red Hat Cross 7.0.1-0.4) Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4

Re: general protection fault: 0000 [#1] SMP with latest commit a073ccac17a85f0c453698d0213cc8b86ecc3dfe

2017-11-20 Thread René van Dorst
Quoting "Jason A. Donenfeld" : Fixed, rebased, force pushed. Let me know if the current master works now. git fetch && git reset --hard origin/master Yes that is better :) Successfully finished the netns.sh test. Thanks, René ___ WireGuard mailin

general protection fault: 0000 [#1] SMP with latest commit a073ccac17a85f0c453698d0213cc8b86ecc3dfe

2017-11-20 Thread René van Dorst
017-10-17) x86_64 GNU/Linux Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard

Re: possible irq lock inversion dependency detected

2017-10-11 Thread René van Dorst
Quoting "Jason A. Donenfeld" : Hi René, I'm having trouble parsing your message. You wrote: So I am not sure if you patch works or not. Because it was not that easy to reproduce the last one. Do you mean to imply that you could NOT reproduce it with my patch? But that you could reproduce it

Re: possible irq lock inversion dependency detected

2017-10-11 Thread René van Dorst
Quoting "Jason A. Donenfeld" : Hi René, Are you able to reliably reproduce this? If so, could you let me know if this patch fixes it? https://git.zx2c4.com/WireGuard/patch/?id=940317ee52d020fc3e19e3a9f615acbc715985d5 Jason Hi Jason, I am not able to reproduce it but it found a other one, h

possible irq lock inversion dependency detected

2017-10-10 Thread René van Dorst
10 Model name:ARMv7 Processor rev 10 (v7l) CPU max MHz: 996. CPU min MHz: 396.0000 BogoMIPS: 3.00 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpd32 Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard

Re: netns.sh: Sending cookie response for denied handshake

2017-10-06 Thread René van Dorst
Hi Jason, Quoting "Jason A. Donenfeld" : Hey René, Fascinating. Can you tell me if this fixes it? http://ix.io/ARe Jason After a bit of more testing and testing you patch. Old situation: I noticed that netns.sh fails before uptime reach 5m (300s). Connecting to my home tunnel always works

Re: netns.sh: Sending cookie response for denied handshake

2017-10-06 Thread René van Dorst
Also WireGuard 0.0.20171001 has it. [root@cubox tests]# ./netns.sh [+] ip netns add wg-test-863-0 [+] ip netns add wg-test-863-1 [+] ip netns add wg-test-863-2 [+] NS0: ip link set up dev lo [+] NS0: ip link add dev wg0 type wireguard [ 172.621122] wireguard: loading out-of-tree module taints k

netns.sh: Sending cookie response for denied handshake

2017-10-06 Thread René van Dorst
float=hard --with-fpu=vfpv3-d16 --with-abi=aapcs-linux --build=armv7hl-redhat-linux-gnueabi Thread model: posix gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC) Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://l

Re: Failed to give packet to userspace from peer with very poor wifi connection.

2017-10-03 Thread René van Dorst
Quoting "Jason A. Donenfeld" : Hey René, I've got this fixed in the latest master branch, and it will roll out in the upcoming snapshot. Jason I tried but I don't get the error any more. Thanks, René ___ WireGuard mailing list WireGuard@lists.zx

Re: Failed to give packet to userspace from peer with very poor wifi connection.

2017-09-22 Thread René van Dorst
Quoting "Jason A. Donenfeld" : Are you *positive* you don't have it reversed? In my testing, 0.0.20170918 has the issue with "failed to give packet to userspace", whereas current git master does _not_ have the issue. Can you make sure that after building the new module, you're sure to unload t

Failed to give packet to userspace from peer with very poor wifi connection.

2017-09-22 Thread René van Dorst
Hi Jason, I get "Failed to give packet to userspace from peer x" on my Solidrun Cubox I4pro with very poor wifi connection. So i connect to my internal wireguard server via wifi. Run iperf3. Often I get Failed to give packet to userspace from peer x. See full log below. I noticed it seems

Re: Last pingtest always fails with netns.sh script on ARM device with F25.

2017-09-20 Thread René van Dorst
Quoting "Jason A. Donenfeld" : Hey René, I figured it out; it was a bug in the test suite, relying on default Linux values, instead of explicitly setting them. It was introduced here: https://git.zx2c4.com/WireGuard/diff/src/tests/netns.sh?id=af2435d180ebb5a3d89b21eb9118d1c643f03f95 And I've

Re: Last pingtest always fails with netns.sh script on ARM device with F25.

2017-09-19 Thread René van Dorst
.241.2) 56(84) bytes of data. --- 192.168.241.2 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 4135ms [+] NS0: ip link del dev wg0 [+] NS1: ip link del dev wg0 [+] NS2: ip link del dev wg0 [+] ip netns del wg-test-6573-1 [+] ip netns del wg-test-6573-2 [+] ip netns del wg-te

Last pingtest always fails with netns.sh script on ARM device with F25.

2017-09-19 Thread René van Dorst
stination Gateway Genmask Flags Metric RefUse Iface 0.0.0.0 192.168.2.254 0.0.0.0 UG60000 wlan0 192.168.2.0 0.0.0.0 255.255.255.0 U 60000 wlan0 Greats, René van Dorst. _

Any Android client news?

2017-09-12 Thread René van Dorst
Hi Jason, Is there any news about the Wireguard Android client? I saw that the v0.1.0 tags was made 3 weeks ago. So can it be used? Or even beter, how to install it from the play store? Greats, René van Dorst. ___ WireGuard mailing list WireGuard

Hash fix commit by Sultan Alsawaf.

2017-06-26 Thread René van Dorst
Jason, Did you notice this commit [1] from Sultan Alsawaf? [1] ratelimiter: fix hashing and hashmap searching for ipv4 addresses; https://git.zx2c4.com/WireGuard/commit/?h=sa/20170623&id=8da15aa96cdf918d8a98cf2caaefb475cadee355 Greats, René van D

Re: [WireGuard] News about MIPS and ARM optimized code?

2016-09-22 Thread René van Dorst
hazards. By doing by hand you can prevent many data hazards. The trick is try to do 2 things by weaving the code together. Which results in less maintainable code. Greats, René van Dorst. Quoting "Jason A. Donenfeld" : Hey René, That's excellent. Thanks for writing that. I

Re: [WireGuard] [PATCHv2] Add support for platforms which has no efficient unaligned memory access

2016-09-20 Thread René van Dorst
Hi Jason, I searched a bit if I could find it in other places but I could not find it. Have you tested this on both endians? No, my hardware only supports big endian. I am not experienced enough to run it in Qemu. I see it is already applied. Great! Greats, René van Dorst. Quoting

Re: [WireGuard] News about MIPS and ARM optimized code?

2016-09-14 Thread René van Dorst
Bandwidth Retr [ 4] 0.00-60.02 sec 297 MBytes 41.6 Mbits/sec0 sender [ 4] 0.00-60.02 sec 297 MBytes 41.6 Mbits/sec receiver Greats, René van Dorst. ___ WireGuard mailing list WireGuard

Re: [WireGuard] [PATCHv2] Add support for platforms which has no efficient unaligned memory access

2016-09-11 Thread René van Dorst
Typo HAVE_EFFICIENT_UNALIGNED_ACCESS --> CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS. From 13fae657624aac6b9c1f411aa6472a91aae7fcc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sat, 10 Sep 2016 10:58:58 +0200 Subject: [PATCH] Add support for platforms which has no effici

[WireGuard] [PATCH] Add support for platforms which has no efficient unaligned memory access

2016-09-10 Thread René van Dorst
From 35cef72b38756e111a6bf7a04641bd0f8d5eef61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sat, 10 Sep 2016 10:58:58 +0200 Subject: [PATCH] Add support for platforms which has no efficient unaligned memory access Without it, it caused 55.2% slowdown in throughput at

[WireGuard] [PATCH] Add support for platforms which has no efficient unaligned memory access

2016-09-10 Thread René van Dorst
Transfer Bandwidth Jitter Lost/Total Datagrams [ 4] 0.00-10.00 sec 56.3 MBytes 47.2 Mbits/sec 0.041 ms 0/7207 (0%) [ 4] Sent 7207 datagrams Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com

Re: [WireGuard] News about MIPS and ARM optimized code?

2016-09-09 Thread René van Dorst
not tested for Litte endian. Todo: * Change the C code to see how fast that works and set benchmark baseline. * Look if I can optimize assembler version even more. Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com http

Re: [WireGuard] News about MIPS and ARM optimized code?

2016-09-09 Thread René van Dorst
MIPS assembly, but I got confused with endianness issues and the code didn't work in the end. Is your code available somewhere? I'd be happy to test on a variety of MIPS routers. On Fri, Sep 09, 2016 at 01:46:11PM +0000, René van Dorst wrote: Duo the misaligned data fetching fun

Re: [WireGuard] News about MIPS and ARM optimized code?

2016-09-09 Thread René van Dorst
its/sec 0.034 ms 0/7209 (0%) [ 4] Sent 7209 datagrams iperf Done. root@lede:~# Work is not done yet but a good start. Greats, René van Dorst. Quoting René van Dorst : I did try to write some MIPS32r2 code. I wrote the chacha20_keysetup, chacha20_generic_block and poly1305_generic_blocks i

Re: [WireGuard] News about MIPS and ARM optimized code?

2016-09-08 Thread René van Dorst
on the other side. On this device I can't switch endian. But I did not see any improvements. Need 2 instruction for swapping 32bit register. After a quick calculation it could save around 0.4% which is ~0.1MBit/s on this device. Greats, René van

[WireGuard] News about MIPS and ARM optimized code?

2016-08-08 Thread René van Dorst
News about MIPS and ARM optimized code? Greats, René van Dorst. ___ WireGuard mailing list WireGuard@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/wireguard

Re: [WireGuard] LEDE / OpenWrt test - on TP-Link841Nv11 - 15MBs and crash

2016-08-03 Thread René van Dorst
) entered forwarding state [  245.070617] br-lan: port 1(eth0.1) entered forwarding state This router is a spare router and only used for the vacations to share wifi connection. I would like to use Wireguard to secure my trafic. Greats, René van Dorst.   On 03.08.2016 08:48, René van Dorst wrote:

Re: [WireGuard] LEDE / OpenWrt test - on TP-Link841Nv11 - 15MBs and crash

2016-08-02 Thread René van Dorst
ides. Other side is a AMD A6-5400 with debian unstable running inside KVM. Both connected to a gigabit switch. My results iperf: - Plain ~100MBits - WG ~24Mbits (TCP test) Greats, René van Dorst. Quoting jens : On 27.07.2016 13:05, Jason A. Donenfeld wrote: On Wed, Jul 27, 2016 at 12:26 PM,