diff options
author | Hans Schillstrom <hans.schillstrom@ericsson.com> | 2011-01-03 08:44:48 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-01-12 20:30:27 -0500 |
commit | 78b16bde104cc74bedbf462b0ebed2990f35ff6b (patch) | |
tree | 1cf3bfb3fd5005be421e7b7bbeb0374e1cc1128a /include/net/netns | |
parent | 4a85b96c08ef84076f84e87280223a4301988ed9 (diff) |
IPVS: netns preparation for proto_udp
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 ip_vs_proto_data
*v3
Removed unused function set_state_timeout()
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/netns/ip_vs.h b/include/net/netns/ip_vs.h index ac77363647ab..62b1448d3795 100644 --- a/include/net/netns/ip_vs.h +++ b/include/net/netns/ip_vs.h | |||
@@ -39,6 +39,14 @@ struct netns_ipvs { | |||
39 | struct list_head tcp_apps[TCP_APP_TAB_SIZE]; | 39 | struct list_head tcp_apps[TCP_APP_TAB_SIZE]; |
40 | spinlock_t tcp_app_lock; | 40 | spinlock_t tcp_app_lock; |
41 | #endif | 41 | #endif |
42 | /* ip_vs_proto_udp */ | ||
43 | #ifdef CONFIG_IP_VS_PROTO_UDP | ||
44 | #define UDP_APP_TAB_BITS 4 | ||
45 | #define UDP_APP_TAB_SIZE (1 << UDP_APP_TAB_BITS) | ||
46 | #define UDP_APP_TAB_MASK (UDP_APP_TAB_SIZE - 1) | ||
47 | struct list_head udp_apps[UDP_APP_TAB_SIZE]; | ||
48 | spinlock_t udp_app_lock; | ||
49 | #endif | ||
42 | 50 | ||
43 | /* ip_vs_lblc */ | 51 | /* ip_vs_lblc */ |
44 | int sysctl_lblc_expiration; | 52 | int sysctl_lblc_expiration; |