aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans Schillstrom <hans.schillstrom@ericsson.com>2011-01-03 08:44:54 -0500
committerSimon Horman <horms@verge.net.au>2011-01-12 20:30:28 -0500
commit29c2026fd4980c144d9c746dc1565060f08e5796 (patch)
tree37373a66fac997e01c83e774c21e00dca713598a /include
parentab8a5e8408c3df2d654611bffc3aaf04f418b266 (diff)
IPVS: netns awareness to ip_vs_est
All variables moved to struct ipvs, most external changes fixed (i.e. init_net removed) *v3 timer per ns instead of a common timer in estimator. Signed-off-by: Hans Schillstrom <hans.schillstrom@ericsson.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'include')
-rw-r--r--include/net/ip_vs.h4
-rw-r--r--include/net/netns/ip_vs.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 0cdd8ce454c2..c08927bb1728 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -1004,8 +1004,8 @@ extern void ip_vs_sync_cleanup(void);
1004 */ 1004 */
1005extern int ip_vs_estimator_init(void); 1005extern int ip_vs_estimator_init(void);
1006extern void ip_vs_estimator_cleanup(void); 1006extern void ip_vs_estimator_cleanup(void);
1007extern void ip_vs_new_estimator(struct ip_vs_stats *stats); 1007extern void ip_vs_new_estimator(struct net *net, struct ip_vs_stats *stats);
1008extern void ip_vs_kill_estimator(struct ip_vs_stats *stats); 1008extern void ip_vs_kill_estimator(struct net *net, struct ip_vs_stats *stats);
1009extern void ip_vs_zero_estimator(struct ip_vs_stats *stats); 1009extern void ip_vs_zero_estimator(struct ip_vs_stats *stats);
1010 1010
1011/* 1011/*
diff --git a/include/net/netns/ip_vs.h b/include/net/netns/ip_vs.h
index 03f7fe1bede6..db0240198339 100644
--- a/include/net/netns/ip_vs.h
+++ b/include/net/netns/ip_vs.h
@@ -70,6 +70,10 @@ struct netns_ipvs {
70 int sysctl_lblcr_expiration; 70 int sysctl_lblcr_expiration;
71 struct ctl_table_header *lblcr_ctl_header; 71 struct ctl_table_header *lblcr_ctl_header;
72 struct ctl_table *lblcr_ctl_table; 72 struct ctl_table *lblcr_ctl_table;
73 /* ip_vs_est */
74 struct list_head est_list; /* estimator list */
75 spinlock_t est_lock;
76 struct timer_list est_timer; /* Estimation timer */
73}; 77};
74 78
75#endif /* IP_VS_H_ */ 79#endif /* IP_VS_H_ */