aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
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')
-rw-r--r--include/net/ip_vs.h2
-rw-r--r--include/net/netns/ip_vs.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
index 88d4e40b538a..3c45a00cdc3e 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
@@ -807,7 +807,7 @@ extern void ip_vs_conn_expire_now(struct ip_vs_conn *cp);
807 807
808extern const char * ip_vs_state_name(__u16 proto, int state); 808extern const char * ip_vs_state_name(__u16 proto, int state);
809 809
810extern void ip_vs_tcp_conn_listen(struct ip_vs_conn *cp); 810extern void ip_vs_tcp_conn_listen(struct net *net, struct ip_vs_conn *cp);
811extern int ip_vs_check_template(struct ip_vs_conn *ct); 811extern int ip_vs_check_template(struct ip_vs_conn *ct);
812extern void ip_vs_random_dropentry(void); 812extern void ip_vs_random_dropentry(void);
813extern int ip_vs_conn_init(void); 813extern int ip_vs_conn_init(void);
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;