summaryrefslogtreecommitdiffhomepage
path: root/src/allowedips.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/allowedips.h')
-rw-r--r--src/allowedips.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/allowedips.h b/src/allowedips.h
index e5c83ca..f08f552 100644
--- a/src/allowedips.h
+++ b/src/allowedips.h
@@ -15,14 +15,11 @@ struct wg_peer;
struct allowedips_node {
struct wg_peer __rcu *peer;
struct allowedips_node __rcu *bit[2];
- /* While it may seem scandalous that we waste space for v4,
- * we're alloc'ing to the nearest power of 2 anyway, so this
- * doesn't actually make a difference.
- */
- u8 bits[16] __aligned(__alignof(u64));
u8 cidr, bit_at_a, bit_at_b, bitlen;
+ u8 bits[16] __aligned(__alignof(u64));
- /* Keep rarely used list at bottom to be beyond cache line. */
+ /* Keep rarely used members at bottom to be beyond cache line. */
+ struct allowedips_node *__rcu *parent_bit; /* XXX: this puts us at 68->128 bytes instead of 60->64 bytes!! */
union {
struct list_head peer_list;
struct rcu_head rcu;