aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/packets.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-04 16:00:22 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-04 16:00:22 +0100
commit074b21a75a87f9d37209cd17f35d779435688d52 (patch)
tree251c705ae5a91ea82c9239b280f968de3b95b7e6 /src/packets.h
parentdata: keep FPU on when possible (diff)
downloadwireguard-monolithic-historical-074b21a75a87f9d37209cd17f35d779435688d52.tar.xz
wireguard-monolithic-historical-074b21a75a87f9d37209cd17f35d779435688d52.zip
data: use a memory cache for parallel ctx
Diffstat (limited to 'src/packets.h')
-rw-r--r--src/packets.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/packets.h b/src/packets.h
index 31abb57..c9d82d1 100644
--- a/src/packets.h
+++ b/src/packets.h
@@ -41,6 +41,8 @@ void packet_send_queued_handshakes(struct work_struct *work);
/* data.c */
int packet_create_data(struct sk_buff_head *queue, struct wireguard_peer *peer, void(*callback)(struct sk_buff_head *, struct wireguard_peer *));
void packet_consume_data(struct sk_buff *skb, size_t offset, struct wireguard_device *wg, void(*callback)(struct sk_buff *, struct wireguard_peer *, struct sockaddr_storage *, bool used_new_key, int err));
+int packet_init_data_caches(void);
+void packet_deinit_data_caches(void);
#define DATA_PACKET_HEAD_ROOM ALIGN(sizeof(struct message_data) + SKB_HEADER_LEN, 4)