aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/timers.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-06-07 01:39:08 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-15 01:16:50 +0200
commit7bfd756cb395307ee779e9382d4745691cd12a0c (patch)
tree45f48c86d6dde7fc92c9fdae03838e3d445becda /src/timers.c
parenttimers: style (diff)
downloadwireguard-monolithic-historical-7bfd756cb395307ee779e9382d4745691cd12a0c.tar.xz
wireguard-monolithic-historical-7bfd756cb395307ee779e9382d4745691cd12a0c.zip
queues: entirely rework parallel system
This removes our dependency on padata. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to '')
-rw-r--r--src/timers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timers.c b/src/timers.c
index 9712c9e..b507aa3 100644
--- a/src/timers.c
+++ b/src/timers.c
@@ -31,9 +31,9 @@ static void expired_retransmit_handshake(unsigned long ptr)
pr_debug("%s: Handshake for peer %Lu (%pISpfsc) did not complete after %d attempts, giving up\n", peer->device->dev->name, peer->internal_id, &peer->endpoint.addr, MAX_TIMER_HANDSHAKES + 2);
del_timer(&peer->timer_send_keepalive);
- /* We remove all existing packets and don't try again,
+ /* We drop all packets without a keypair and don't try again,
* if we try unsuccessfully for too long to make a handshake. */
- skb_queue_purge(&peer->tx_packet_queue);
+ peer_purge_queues(peer);
/* We set a timer for destroying any residue that might be left
* of a partial exchange. */
if (likely(peer->timers_enabled) && !timer_pending(&peer->timer_zero_key_material))