diff options
author | Hans Schillstrom <hans.schillstrom@ericsson.com> | 2011-01-03 08:44:49 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-01-12 20:30:27 -0500 |
commit | 9d934878e7870fbbbd8eaed2e467552536877def (patch) | |
tree | 82be8a59a2a68a7f8511c9d2b5a1a457b21fce58 /include/net/netns | |
parent | 78b16bde104cc74bedbf462b0ebed2990f35ff6b (diff) |
IPVS: netns preparation for proto_sctp
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 unuset 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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/netns/ip_vs.h b/include/net/netns/ip_vs.h index 62b1448d3795..58bd3fd85a97 100644 --- a/include/net/netns/ip_vs.h +++ b/include/net/netns/ip_vs.h | |||
@@ -47,6 +47,15 @@ struct netns_ipvs { | |||
47 | struct list_head udp_apps[UDP_APP_TAB_SIZE]; | 47 | struct list_head udp_apps[UDP_APP_TAB_SIZE]; |
48 | spinlock_t udp_app_lock; | 48 | spinlock_t udp_app_lock; |
49 | #endif | 49 | #endif |
50 | /* ip_vs_proto_sctp */ | ||
51 | #ifdef CONFIG_IP_VS_PROTO_SCTP | ||
52 | #define SCTP_APP_TAB_BITS 4 | ||
53 | #define SCTP_APP_TAB_SIZE (1 << SCTP_APP_TAB_BITS) | ||
54 | #define SCTP_APP_TAB_MASK (SCTP_APP_TAB_SIZE - 1) | ||
55 | /* Hash table for SCTP application incarnations */ | ||
56 | struct list_head sctp_apps[SCTP_APP_TAB_SIZE]; | ||
57 | spinlock_t sctp_app_lock; | ||
58 | #endif | ||
50 | 59 | ||
51 | /* ip_vs_lblc */ | 60 | /* ip_vs_lblc */ |
52 | int sysctl_lblc_expiration; | 61 | int sysctl_lblc_expiration; |