projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27d777
)
IPVS: ip_vs_todrop() becomes a noop when CONFIG_SYSCTL is undefined
author
Simon Horman
<horms@verge.net.au>
Fri, 4 Feb 2011 09:33:02 +0000
(18:33 +0900)
committer
Simon Horman
<horms@verge.net.au>
Tue, 15 Mar 2011 00:36:59 +0000
(09:36 +0900)
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/ip_vs.h
b/include/net/ip_vs.h
index 687ef18227cd9c47ebf604a077bf68695ba7ad32..77ebece7e68ce793e8e80450696890d65ea2b37a 100644
(file)
--- 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