Failed to give packet to userspace from peer with very poor wifi connection.
René van Dorst
opensource at vdorst.com
Fri Sep 22 14:49:13 CEST 2017
Quoting "Jason A. Donenfeld" <Jason at zx2c4.com>:
> 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 the previous one (rmmod)?
I recompiled and tested again with git master, 0.0.20170918-9-g31ae6e6
[root at cubox src]# modprobe wireguard
[ 851.416239] wireguard: routing table self-tests: pass
[ 851.425864] wireguard: nonce counter self-tests: pass
[ 851.437725] wireguard: curve25519 self-tests: pass
[ 851.443139] wireguard: chacha20poly1305 self-tests: pass
[ 851.451343] wireguard: blake2s self-tests: pass
[ 851.819278] wireguard: ratelimiter self-tests: pass
[ 851.824417] wireguard: WireGuard 0.0.20170918-9-g31ae6e6 loaded.
See www.wireguard.com for information.
[ 851.833915] wireguard: Copyright (C) 2015-2017 Jason A. Donenfeld
<Jason at zx2c4.com>. All Rights Reserved.
[root at cubox src]# wg-quick up wg0
[#] ip link add wg0 type wireguard
[ 859.735321] wireguard: wg0: Interface created
[#] wg setconf wg0 /dev/fd/63
[ 859.784055] wireguard: wg0: Peer 1 created
[#] ip address add 10.0.0.2/24 dev wg0
[#] ip address add fd00::2/128 dev wg0
[#] ip link set mtu 1440 dev wg0
[#] ip link set wg0 up
[ 859.827675] wireguard: wg0: Sending keepalive packet to peer 1
(192.168.2.222:36464)
[ 859.827733] wireguard: wg0: Sending handshake initiation to peer 1
(192.168.2.222:36464)
[ 859.882635] wireguard: wg0: Receiving handshake response from peer
1 (192.168.2.222:36464)
[ 859.882687] wireguard: wg0: Keypair 1 created for peer 1
[#] ip route add fd00::/64 dev wg0
[#] ip route add 2a02:<SNIP>/48 dev wg0
[root at cubox src]# iperf3 -c 10.0.0.1 -b 1M -t 30 -i 1
[ 885.151542] wireguard: wg0: Sending keepalive packet to peer 1
(192.168.2.222:36464)
Connecting to host 10.0.0.1, port 5201
[ 4] local 10.0.0.2 port 58610 connected to 10.0.0.1 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 117 KBytes 955 Kbits/sec 0 43.4 KBytes
[ 4] 1.00-2.00 sec 235 KBytes 1.93 Mbits/sec 0 51.5 KBytes
[ 4] 2.00-3.00 sec 128 KBytes 1.05 Mbits/sec 0 56.9 KBytes
[ 4] 3.00-4.00 sec 0.00 Bytes 0.00 bits/sec 0 56.9 KBytes
[ 4] 4.00-5.00 sec 88.9 KBytes 728 Kbits/sec 0 56.9 KBytes
[ 4] 5.00-6.00 sec 125 KBytes 1.02 Mbits/sec 0 56.9 KBytes
[ 4] 6.00-7.00 sec 0.00 Bytes 0.00 bits/sec 5 27.1 KBytes
[ 4] 7.00-8.00 sec 0.00 Bytes 0.00 bits/sec 8 23.0 KBytes
[ 4] 8.00-9.00 sec 125 KBytes 1.02 Mbits/sec 0 43.4 KBytes
[ 4] 9.00-10.00 sec 0.00 Bytes 0.00 bits/sec 2 32.5 KBytes
[ 4] 10.00-11.00 sec 0.00 Bytes 0.00 bits/sec 10 27.1 KBytes
[ 4] 11.00-12.00 sec 0.00 Bytes 0.00 bits/sec 8 24.4 KBytes
[ 4] 12.00-13.00 sec 0.00 Bytes 0.00 bits/sec 3 20.3 KBytes
[ 4] 13.00-14.00 sec 0.00 Bytes 0.00 bits/sec 0 20.3 KBytes
[ 4] 14.00-15.00 sec 0.00 Bytes 0.00 bits/sec 0 20.3 KBytes
[ 4] 15.00-16.00 sec 0.00 Bytes 0.00 bits/sec 0 20.3 KBytes
[ 4] 16.00-17.00 sec 0.00 Bytes 0.00 bits/sec 0 20.3 KBytes
[ 4] 17.00-18.00 sec 0.00 Bytes 0.00 bits/sec 1 1.36 KBytes
[ 4] 18.00-19.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 19.00-20.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 20.00-21.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 21.00-22.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 22.00-23.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 23.00-24.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 24.00-25.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 25.00-26.00 sec 0.00 Bytes 0.00 bits/sec 0 1.36 KBytes
[ 4] 26.00-27.00 sec 0.00 Bytes 0.00 bits/sec 1 1.36 KBytes
[ 4] 27.00-28.00 sec 62.4 KBytes 511 Kbits/sec 13 4.07 KBytes
[ 4] 28.00-29.00 sec 0.00 Bytes 0.00 bits/sec 3 6.78 KBytes
[ 920.064607] wireguard: wg0: Failed to give packet to userspace from
peer 1 (192.168.2.222:36464)
[ 920.073695] wireguard: wg0: Failed to give packet to userspace from
peer 1 (192.168.2.222:36464)
[ 920.081211] wireguard: wg0: Failed to give packet to userspace from
peer 1 (192.168.2.222:36464)
[ 4] 29.00-30.00 sec 125 KBytes 1.02 Mbits/sec 1 5.42 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-30.00 sec 1005 KBytes 274 Kbits/sec 55 sender
[ 4] 0.00-30.00 sec 780 KBytes 213 Kbits/sec receiver
iperf Done.
[root at cubox src]#
Greats,
René
More information about the WireGuard
mailing list