aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireguard/queueing.h
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/queueing.h
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 'drivers/net/wireguard/queueing.h')
-rw-r--r--drivers/net/wireguard/queueing.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireguard/queueing.h b/drivers/net/wireguard/queueing.h
index fb927d76b80a..0f382a4ba017 100644
--- a/drivers/net/wireguard/queueing.h
+++ b/drivers/net/wireguard/queueing.h
@@ -30,8 +30,6 @@ void wg_packet_receive(struct wg_device *wg, struct sk_buff *skb);
void wg_packet_handshake_receive_worker(struct work_struct *work);
/* NAPI poll function: */
int wg_packet_rx_poll(struct napi_struct *napi, int budget);
-/* Workqueue worker: */
-void wg_packet_decrypt_worker(struct work_struct *work);
/* send.c APIs: */
void wg_packet_send_queued_handshake_initiation(struct wg_peer *peer,
@@ -46,7 +44,9 @@ void wg_packet_send_staged_packets(struct wg_peer *peer);
/* Workqueue workers: */
void wg_packet_handshake_send_worker(struct work_struct *work);
void wg_packet_tx_worker(struct work_struct *work);
-void wg_packet_encrypt_worker(struct work_struct *work);
+
+/* symmetric.c APIs: */
+void wg_packet_crypt_worker(struct work_struct *work);
enum packet_state {
PACKET_STATE_NOT_ENCRYPTED,