Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Ward and committed by
David S. Miller
728871bc 19c1ea14

+3 -3
+3 -3
include/net/flow.h
··· 68 68 #define fl4_ipsec_spi uli.spi 69 69 #define fl4_mh_type uli.mht.type 70 70 #define fl4_gre_key uli.gre_key 71 - }; 71 + } __attribute__((__aligned__(BITS_PER_LONG/8))); 72 72 73 73 static inline void flowi4_init_output(struct flowi4 *fl4, int oif, 74 74 __u32 mark, __u8 tos, __u8 scope, ··· 112 112 #define fl6_ipsec_spi uli.spi 113 113 #define fl6_mh_type uli.mht.type 114 114 #define fl6_gre_key uli.gre_key 115 - }; 115 + } __attribute__((__aligned__(BITS_PER_LONG/8))); 116 116 117 117 struct flowidn { 118 118 struct flowi_common __fl_common; ··· 127 127 union flowi_uli uli; 128 128 #define fld_sport uli.ports.sport 129 129 #define fld_dport uli.ports.dport 130 - }; 130 + } __attribute__((__aligned__(BITS_PER_LONG/8))); 131 131 132 132 struct flowi { 133 133 union {