summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-02-04 18:33:02 +0900
committerSimon Horman <horms@verge.net.au>2011-03-15 09:37:00 +0900
commita4e2f5a700cb93448b2da0e158149d18dc5290ef (patch)
treee0d2926c920a3ddab0e5687d1cfef457a09e2cd9 /include
parent3a1bbf1885e94ecedf1deaaab1ace8409330aa7e (diff)
downloadblackbird-op-linux-a4e2f5a700cb93448b2da0e158149d18dc5290ef.tar.gz
blackbird-op-linux-a4e2f5a700cb93448b2da0e158149d18dc5290ef.zip
IPVS: Conditional ip_vs_conntrack_enabled()
ip_vs_conntrack_enabled() becomes a noop when CONFIG_SYSCTL is undefined. In preparation for not including sysctl_conntrack in struct netns_ipvs when CONFIG_SYCTL is not defined. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip_vs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 77ebece7e68c..299aeb537899 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -1359,7 +1359,11 @@ static inline void ip_vs_notrack(struct sk_buff *skb)
*/
static inline int ip_vs_conntrack_enabled(struct netns_ipvs *ipvs)
{
+#ifdef CONFIG_SYSCTL
return ipvs->sysctl_conntrack;
+#else
+ return 0;
+#endif
}
extern void ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp,
OpenPOWER on IntegriCloud