aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorHans Schillstrom <hans.schillstrom@ericsson.com>2011-01-03 08:44:58 -0500
committerSimon Horman <horms@verge.net.au>2011-01-12 20:30:28 -0500
commita0840e2e165a370ca24a59545e564e9881a55891 (patch)
treedeb10e3931be9410aebbb55e5fccbd42a5edd633 /include/net/netns
parent6e67e586e7289c144d5a189d6e0fa7141d025746 (diff)
IPVS: netns, ip_vs_ctl local vars moved to ipvs struct.
Moving global vars to ipvs struct, except for svc table lock. Next patch for ctl will be drop-rate handling. *v3 __ip_vs_mutex remains global ip_vs_conntrack_enabled(struct netns_ipvs *ipvs) 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/net/netns')
-rw-r--r--include/net/netns/ip_vs.h37
1 files changed, 35 insertions, 2 deletions
diff --git a/include/net/netns/ip_vs.h b/include/net/netns/ip_vs.h
index 1acfb334e69b..c4b1abf258e4 100644
--- a/include/net/netns/ip_vs.h
+++ b/include/net/netns/ip_vs.h
@@ -61,13 +61,46 @@ struct netns_ipvs {
61 struct list_head sctp_apps[SCTP_APP_TAB_SIZE]; 61 struct list_head sctp_apps[SCTP_APP_TAB_SIZE];
62 spinlock_t sctp_app_lock; 62 spinlock_t sctp_app_lock;
63#endif 63#endif
64 /* ip_vs_conn */
65 atomic_t conn_count; /* connection counter */
66
64 /* ip_vs_ctl */ 67 /* ip_vs_ctl */
65 struct ip_vs_stats *tot_stats; /* Statistics & est. */ 68 struct ip_vs_stats *tot_stats; /* Statistics & est. */
66 struct ip_vs_cpu_stats __percpu *cpustats; /* Stats per cpu */ 69 struct ip_vs_cpu_stats __percpu *cpustats; /* Stats per cpu */
67 seqcount_t *ustats_seq; /* u64 read retry */ 70 seqcount_t *ustats_seq; /* u64 read retry */
68 71
69 /* ip_vs_conn */ 72 int num_services; /* no of virtual services */
70 atomic_t conn_count; /* connection counter */ 73 /* 1/rate drop and drop-entry variables */
74 int drop_rate;
75 int drop_counter;
76 atomic_t dropentry;
77 /* locks in ctl.c */
78 spinlock_t dropentry_lock; /* drop entry handling */
79 spinlock_t droppacket_lock; /* drop packet handling */
80 spinlock_t securetcp_lock; /* state and timeout tables */
81 rwlock_t rs_lock; /* real services table */
82 /* semaphore for IPVS sockopts. And, [gs]etsockopt may sleep. */
83 struct lock_class_key ctl_key; /* ctl_mutex debuging */
84 /* sys-ctl struct */
85 struct ctl_table_header *sysctl_hdr;
86 struct ctl_table *sysctl_tbl;
87 /* sysctl variables */
88 int sysctl_amemthresh;
89 int sysctl_am_droprate;
90 int sysctl_drop_entry;
91 int sysctl_drop_packet;
92 int sysctl_secure_tcp;
93#ifdef CONFIG_IP_VS_NFCT
94 int sysctl_conntrack;
95#endif
96 int sysctl_snat_reroute;
97 int sysctl_sync_ver;
98 int sysctl_cache_bypass;
99 int sysctl_expire_nodest_conn;
100 int sysctl_expire_quiescent_template;
101 int sysctl_sync_threshold[2];
102 int sysctl_nat_icmp_send;
103
71 /* ip_vs_lblc */ 104 /* ip_vs_lblc */
72 int sysctl_lblc_expiration; 105 int sysctl_lblc_expiration;
73 struct ctl_table_header *lblc_ctl_header; 106 struct ctl_table_header *lblc_ctl_header;