Commit 8b4d14d8 authored by JunweiZhang's avatar JunweiZhang Committed by Simon Horman
Browse files

netns: exclude ipvs from struct net when IPVS disabled



no real problem is fixed, just save a few bytes in
net_namespace structure.
Signed-off-by: default avatarJunweiZhang <junwei.zhang@6wind.com>
Signed-off-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Reviewed-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent d0667186
...@@ -115,7 +115,9 @@ struct net { ...@@ -115,7 +115,9 @@ struct net {
#ifdef CONFIG_XFRM #ifdef CONFIG_XFRM
struct netns_xfrm xfrm; struct netns_xfrm xfrm;
#endif #endif
#if IS_ENABLED(CONFIG_IP_VS)
struct netns_ipvs *ipvs; struct netns_ipvs *ipvs;
#endif
struct sock *diag_nlsk; struct sock *diag_nlsk;
atomic_t rt_genid; atomic_t rt_genid;
atomic_t fnhe_genid; atomic_t fnhe_genid;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment