LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH 2/2] netns: exclude ipvs from struct net when IPVS disabled

To: wensong@xxxxxxxxxxxx
Subject: [PATCH 2/2] netns: exclude ipvs from struct net when IPVS disabled
Cc: horms@xxxxxxxxxxxx, ja@xxxxxx, netdev@xxxxxxxxxxxxxxx, lvs-devel@xxxxxxxxxxxxxxx, JunweiZhang <junwei.zhang@xxxxxxxxx>
From: junwei.zhang@xxxxxxxxx
Date: Fri, 21 Jun 2013 10:05:27 +0800
From: JunweiZhang <junwei.zhang@xxxxxxxxx>

Signed-off-by: JunweiZhang <junwei.zhang@xxxxxxxxx>
---
 include/net/net_namespace.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index b176978..c2bf266 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;
 };
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>