Skip to content

Commit 728871b

Browse files
dpwarddavem330
authored andcommitted
net: Align AF-specific flowi structs to long
AF-specific flowi structs are now passed to flow_key_compare, which must also be aligned to a long. Signed-off-by: David Ward <david.ward@ll.mit.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 19c1ea1 commit 728871b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/net/flow.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct flowi4 {
6868
#define fl4_ipsec_spi uli.spi
6969
#define fl4_mh_type uli.mht.type
7070
#define fl4_gre_key uli.gre_key
71-
};
71+
} __attribute__((__aligned__(BITS_PER_LONG/8)));
7272

7373
static inline void flowi4_init_output(struct flowi4 *fl4, int oif,
7474
__u32 mark, __u8 tos, __u8 scope,
@@ -112,7 +112,7 @@ struct flowi6 {
112112
#define fl6_ipsec_spi uli.spi
113113
#define fl6_mh_type uli.mht.type
114114
#define fl6_gre_key uli.gre_key
115-
};
115+
} __attribute__((__aligned__(BITS_PER_LONG/8)));
116116

117117
struct flowidn {
118118
struct flowi_common __fl_common;
@@ -127,7 +127,7 @@ struct flowidn {
127127
union flowi_uli uli;
128128
#define fld_sport uli.ports.sport
129129
#define fld_dport uli.ports.dport
130-
};
130+
} __attribute__((__aligned__(BITS_PER_LONG/8)));
131131

132132
struct flowi {
133133
union {

0 commit comments

Comments
 (0)