aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/main.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-21 03:55:31 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-06-26 12:35:06 +0200
commit79a7dc4da9702d05c5085acffe1c4f9cf72c26a6 (patch)
treedf8160a06c0d7ed61a71b014b970bd8f0e8add9c /src/main.c
parentcurve25519: keep certain sandy2x functions in C (diff)
downloadwireguard-monolithic-historical-79a7dc4da9702d05c5085acffe1c4f9cf72c26a6.tar.xz
wireguard-monolithic-historical-79a7dc4da9702d05c5085acffe1c4f9cf72c26a6.zip
ratelimiter: rewrite from scratch
This not only removes the depenency on x_tables, but it also gives us much better performance and memory usage. Now, systems are able to have millions of WireGuard interfaces, without having to worry about a thundering herd of garbage collection.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index f6b36e1..69f3397 100644
--- a/src/main.c
+++ b/src/main.c
@@ -26,10 +26,6 @@ static int __init mod_init(void)
#endif
noise_init();
- ret = ratelimiter_module_init();
- if (ret < 0)
- return ret;
-
#ifdef CONFIG_WIREGUARD_PARALLEL
ret = packet_init_data_caches();
if (ret < 0)
@@ -50,7 +46,6 @@ err_device:
packet_deinit_data_caches();
err_packet:
#endif
- ratelimiter_module_deinit();
return ret;
}
@@ -60,7 +55,6 @@ static void __exit mod_exit(void)
#ifdef CONFIG_WIREGUARD_PARALLEL
packet_deinit_data_caches();
#endif
- ratelimiter_module_deinit();
pr_debug("WireGuard unloaded\n");
}