[IPV6]: Move nfheader_len into rt6_info
The dst member nfheader_len is only used by IPv6. It's also currently creating a rather ugly alignment hole in struct dst. Therefore this patch moves it from there into struct rt6_info. It also reorders the fields in rt6_info to minimize holes. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
550ade8432
commit
b4ce92775c
@@ -99,16 +99,21 @@ struct rt6_info
|
||||
u32 rt6i_flags;
|
||||
u32 rt6i_metric;
|
||||
atomic_t rt6i_ref;
|
||||
|
||||
/* more non-fragment space at head required */
|
||||
unsigned short nfheader_len;
|
||||
|
||||
u8 rt6i_protocol;
|
||||
|
||||
struct fib6_table *rt6i_table;
|
||||
|
||||
struct rt6key rt6i_dst;
|
||||
struct rt6key rt6i_src;
|
||||
|
||||
u8 rt6i_protocol;
|
||||
|
||||
#ifdef CONFIG_XFRM
|
||||
u32 rt6i_flow_cache_genid;
|
||||
#endif
|
||||
|
||||
struct rt6key rt6i_src;
|
||||
};
|
||||
|
||||
static inline struct inet6_dev *ip6_dst_idev(struct dst_entry *dst)
|
||||
|
Reference in New Issue
Block a user