diff options
author | Simon Horman <horms@verge.net.au> | 2011-02-04 10:33:02 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-03-15 01:36:59 +0100 |
commit | 3a1bbf1885e94ecedf1deaaab1ace8409330aa7e (patch) | |
tree | 0714847d8f8b67014c2a0f6c6a942cb5eb817bfd /include/net | |
parent | IPVS: Conditinally use sysctl_lblc{r}_expiration (diff) | |
download | linux-3a1bbf1885e94ecedf1deaaab1ace8409330aa7e.tar.xz linux-3a1bbf1885e94ecedf1deaaab1ace8409330aa7e.zip |
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')
-rw-r--r-- | include/net/ip_vs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index 687ef18227cd..77ebece7e68c 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h @@ -1253,6 +1253,7 @@ extern int ip_vs_icmp_xmit_v6 int offset); #endif +#ifdef CONFIG_SYSCTL /* * This is a simple mechanism to ignore packets when * 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) ipvs->drop_counter = ipvs->drop_rate; return 1; } +#else +static inline int ip_vs_todrop(struct netns_ipvs *ipvs) { return 0; } +#endif /* * ip_vs_fwd_tag returns the forwarding tag of the connection |