From: JunweiZhang Date: Wed, 26 Jun 2013 08:40:06 +0000 (+0800) Subject: netns: exclude ipvs from struct net when IPVS disabled X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8b4d14d8eb36874daf159d33dcccd4746a6f3189;p=linux-beck.git 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: JunweiZhang Signed-off-by: Nicolas Dichtel Reviewed-by: Julian Anastasov Signed-off-by: Simon Horman --- diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 495bc57f292c..84e37b1ca9e1 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -115,7 +115,9 @@ struct net { #ifdef CONFIG_XFRM struct netns_xfrm xfrm; #endif +#if IS_ENABLED(CONFIG_IP_VS) struct netns_ipvs *ipvs; +#endif struct sock *diag_nlsk; atomic_t rt_genid; atomic_t fnhe_genid;