aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/ratelimiter.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-01-13 05:25:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-01-13 05:25:46 +0100
commit2a348e4c945502204125d0519b55433b7d41853c (patch)
tree3dde14fdc784238b1a22adcf3784af5f4122c49c /src/ratelimiter.c
parentconfig: useless newline (diff)
downloadwireguard-monolithic-historical-2a348e4c945502204125d0519b55433b7d41853c.tar.xz
wireguard-monolithic-historical-2a348e4c945502204125d0519b55433b7d41853c.zip
Use __read_mostly attribute when possible
Diffstat (limited to 'src/ratelimiter.c')
-rw-r--r--src/ratelimiter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ratelimiter.c b/src/ratelimiter.c
index 30e4175..c45d7ce 100644
--- a/src/ratelimiter.c
+++ b/src/ratelimiter.c
@@ -8,9 +8,9 @@
#include <linux/netfilter/x_tables.h>
#include <net/ip.h>
-static struct xt_match *v4_match;
+static struct xt_match *v4_match __read_mostly;
#if IS_ENABLED(CONFIG_IPV6)
-static struct xt_match *v6_match;
+static struct xt_match *v6_match __read_mostly;
#endif
enum {