aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-02-04 04:33:02 -0500
committerSimon Horman <horms@verge.net.au>2011-03-14 20:36:59 -0400
commit3a1bbf1885e94ecedf1deaaab1ace8409330aa7e (patch)
tree0714847d8f8b67014c2a0f6c6a942cb5eb817bfd /include/net/ip_vs.h
parentb27d777ec54205eb56cf4e873d043a426881c629 (diff)
IPVS: ip_vs_todrop() becomes a noop when CONFIG_SYSCTL is undefined
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/ip_vs.h')
-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 687ef18227c..77ebece7e68 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -1253,6 +1253,7 @@ extern int ip_vs_icmp_xmit_v6
1253 int offset); 1253 int offset);
1254#endif 1254#endif
1255 1255
1256#ifdef CONFIG_SYSCTL
1256/* 1257/*
1257 * This is a simple mechanism to ignore packets when 1258 * This is a simple mechanism to ignore packets when
1258 * we are loaded. Just set ip_vs_drop_rate to 'n' and 1259 * we are loaded. Just set ip_vs_drop_rate to 'n' and
@@ -1268,6 +1269,9 @@ static inline int ip_vs_todrop(struct netns_ipvs *ipvs)
1268 ipvs->drop_counter = ipvs->drop_rate; 1269 ipvs->drop_counter = ipvs->drop_rate;
1269 return 1; 1270 return 1;
1270} 1271}
1272#else
1273static inline int ip_vs_todrop(struct netns_ipvs *ipvs) { return 0; }
1274#endif
1271 1275
1272/* 1276/*
1273 * ip_vs_fwd_tag returns the forwarding tag of the connection 1277 * ip_vs_fwd_tag returns the forwarding tag of the connection