]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: Wrap sysctl_cache_bypass and remove ifdefs in ip_vs_leave
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 21 Sep 2015 18:02:49 +0000 (13:02 -0500)
committerSimon Horman <horms@verge.net.au>
Thu, 24 Sep 2015 00:34:42 +0000 (09:34 +0900)
commit3e9b6b79b41e0836fa1deecaa432ff46278d242f
tree93645296803b88209bb74d41f51c99af69a33dbe
parentef06990e77d3a89c425b1c9df1580f07ba8d400a
ipvs: Wrap sysctl_cache_bypass and remove ifdefs in ip_vs_leave

With sysctl_cache_bypass now a compile time constant the compiler can
figue out that it can elimiate all of the code that depends on
sysctl_cache_bypass being true.

Also remove the duplicate computation of net previously necessitated
by #ifdef CONFIG_SYSCTL

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c