aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireguard/send.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-04-22 02:13:42 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-04-22 02:13:42 -0600
commit769eafb365ee30352d28d041fbd29c212857cbdb (patch)
treed7070841b032a5b2f8f4cef31ccdf404765d99fd /drivers/net/wireguard/send.c
parentwireguard: split CRYPTED/UNCRYPTED into {EN,DE}CRYPTED/NOT_{EN,DE}CRYPTED (diff)
downloadwireguard-linux-jd/unified-crypt-queue.tar.xz
wireguard-linux-jd/unified-crypt-queue.zip
wireguard: unify encryption and decryption workersjd/unified-crypt-queue
By unifying encryption and decryption workers into a single worker, this ensures that encryption and decryption happening at the same time does not result in workqueues stepping on each other and creating unnecessary work for the scheduler. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--drivers/net/wireguard/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireguard/send.c b/drivers/net/wireguard/send.c
index c7d5c3643403..e925ef7af45b 100644
--- a/drivers/net/wireguard/send.c
+++ b/drivers/net/wireguard/send.c
@@ -219,10 +219,10 @@ static void wg_packet_create_data(struct sk_buff *first)
if (unlikely(READ_ONCE(peer->is_dead)))
goto err;
- ret = wg_queue_enqueue_per_device_and_peer(&wg->encrypt_queue,
+ ret = wg_queue_enqueue_per_device_and_peer(&wg->crypt_queue,
&peer->tx_queue, first,
wg->packet_crypt_wq,
- &wg->encrypt_queue.last_cpu,
+ &wg->crypt_queue.last_cpu,
PACKET_STATE_NOT_ENCRYPTED);
if (unlikely(ret == -EPIPE))
wg_queue_enqueue_per_peer(&peer->tx_queue, first,