summaryrefslogtreecommitdiffhomepage
path: root/src/allowedips.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/allowedips.h')
-rw-r--r--src/allowedips.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/allowedips.h b/src/allowedips.h
index 32d611a..2346c79 100644
--- a/src/allowedips.h
+++ b/src/allowedips.h
@@ -19,7 +19,7 @@ struct allowedips_node {
u8 bits[16] __aligned(__alignof(u64));
/* Keep rarely used members at bottom to be beyond cache line. */
- struct allowedips_node *__rcu *parent_bit;
+ unsigned long parent_bit_packed;
union {
struct list_head peer_list;
struct rcu_head rcu;
@@ -30,7 +30,7 @@ struct allowedips {
struct allowedips_node __rcu *root4;
struct allowedips_node __rcu *root6;
u64 seq;
-};
+} __aligned(4); /* We pack the lower 2 bits of &root, but m68k only gives 16-bit alignment. */
void wg_allowedips_init(struct allowedips *table);
void wg_allowedips_free(struct allowedips *table, struct mutex *mutex);