aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorHans Schillstrom <hans.schillstrom@ericsson.com>2011-01-03 08:44:47 -0500
committerSimon Horman <horms@verge.net.au>2011-01-12 20:30:27 -0500
commit4a85b96c08ef84076f84e87280223a4301988ed9 (patch)
tree14ec2ae8cd5c159dc4400c5a97a13231de1c9efb /include/net/netns
parent252c64103237f1841088f0f29b4f084b1c774546 (diff)
IPVS: netns preparation for proto_tcp
In this phase (one), all local vars will be moved to ipvs struct. Remaining work, add param struct net *net to a couple of functions that is common for all protos and use all ip_vs_proto_data *v3 Removed unused function as sugested by Simon 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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/netns/ip_vs.h b/include/net/netns/ip_vs.h
index 6f4e089b8db2..ac77363647ab 100644
--- a/include/net/netns/ip_vs.h
+++ b/include/net/netns/ip_vs.h
@@ -31,6 +31,14 @@ struct netns_ipvs {
31 /* ip_vs_proto */ 31 /* ip_vs_proto */
32 #define IP_VS_PROTO_TAB_SIZE 32 /* must be power of 2 */ 32 #define IP_VS_PROTO_TAB_SIZE 32 /* must be power of 2 */
33 struct ip_vs_proto_data *proto_data_table[IP_VS_PROTO_TAB_SIZE]; 33 struct ip_vs_proto_data *proto_data_table[IP_VS_PROTO_TAB_SIZE];
34 /* ip_vs_proto_tcp */
35#ifdef CONFIG_IP_VS_PROTO_TCP
36 #define TCP_APP_TAB_BITS 4
37 #define TCP_APP_TAB_SIZE (1 << TCP_APP_TAB_BITS)
38 #define TCP_APP_TAB_MASK (TCP_APP_TAB_SIZE - 1)
39 struct list_head tcp_apps[TCP_APP_TAB_SIZE];
40 spinlock_t tcp_app_lock;
41#endif
34 42
35 /* ip_vs_lblc */ 43 /* ip_vs_lblc */
36 int sysctl_lblc_expiration; 44 int sysctl_lblc_expiration;