diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-06-21 03:55:31 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-06-26 12:35:06 +0200 |
commit | 79a7dc4da9702d05c5085acffe1c4f9cf72c26a6 (patch) | |
tree | df8160a06c0d7ed61a71b014b970bd8f0e8add9c /src/main.c | |
parent | curve25519: keep certain sandy2x functions in C (diff) | |
download | wireguard-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.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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"); } |