aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/send.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-15 22:04:22 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-15 23:41:22 +0200
commit3f1cc6f8911228fda393b4c90ed995637de10227 (patch)
tree18c9183c7664548b90c83d55ffe74afd526d337f /src/send.c
parentdata: avoid running parallel/serial work on the same CPU (diff)
downloadwireguard-monolithic-historical-3f1cc6f8911228fda393b4c90ed995637de10227.tar.xz
wireguard-monolithic-historical-3f1cc6f8911228fda393b4c90ed995637de10227.zip
data: switch to multiconsumer model with spinlocks
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/send.c b/src/send.c
index b58f9a6..f270ad2 100644
--- a/src/send.c
+++ b/src/send.c
@@ -111,7 +111,7 @@ void packet_send_keepalive(struct wireguard_peer *peer)
struct sk_buff *skb;
struct sk_buff_head queue;
- if (list_empty(&peer->init_queue.list)) {
+ if (list_empty(&peer->init_queue.queue)) {
skb = alloc_skb(DATA_PACKET_HEAD_ROOM + MESSAGE_MINIMUM_LENGTH, GFP_ATOMIC);
if (unlikely(!skb))
return;