aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip_vs.h
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2011-02-04 04:33:01 -0500
committerSimon Horman <horms@verge.net.au>2011-03-14 20:36:57 -0400
commit7532e8d40ccfdde6667169eeac4fd7778d6eb462 (patch)
tree11e85b08746b3b714e8d0a0222639444681de951 /include/net/ip_vs.h
parent59e0350eada0516a810cb780db37746165f1d516 (diff)
IPVS: Add sysctl_sync_ver()
In preparation for not including sysctl_sync_ver in struct netns_ipvs when CONFIG_SYCTL is not defined. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include/net/ip_vs.h')
-rw-r--r--include/net/ip_vs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 253736db476b..687ef18227cd 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -911,6 +911,7 @@ struct netns_ipvs {
911 911
912#define DEFAULT_SYNC_THRESHOLD 3 912#define DEFAULT_SYNC_THRESHOLD 3
913#define DEFAULT_SYNC_PERIOD 50 913#define DEFAULT_SYNC_PERIOD 50
914#define DEFAULT_SYNC_VER 1
914 915
915#ifdef CONFIG_SYSCTL 916#ifdef CONFIG_SYSCTL
916 917
@@ -924,6 +925,11 @@ static inline int sysctl_sync_period(struct netns_ipvs *ipvs)
924 return ipvs->sysctl_sync_threshold[1]; 925 return ipvs->sysctl_sync_threshold[1];
925} 926}
926 927
928static inline int sysctl_sync_ver(struct netns_ipvs *ipvs)
929{
930 return ipvs->sysctl_sync_ver;
931}
932
927#else 933#else
928 934
929static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs) 935static inline int sysctl_sync_threshold(struct netns_ipvs *ipvs)
@@ -936,6 +942,11 @@ static inline int sysctl_sync_period(struct netns_ipvs *ipvs)
936 return DEFAULT_SYNC_PERIOD; 942 return DEFAULT_SYNC_PERIOD;
937} 943}
938 944
945static inline int sysctl_sync_ver(struct netns_ipvs *ipvs)
946{
947 return DEFAULT_SYNC_VER;
948}
949
939#endif 950#endif
940 951
941/* 952/*