|
@@ -691,10 +691,8 @@ void ip_vs_tcp_conn_listen(struct net *net, struct ip_vs_conn *cp)
|
|
|
* timeouts is netns related now.
|
|
|
* ---------------------------------------------
|
|
|
*/
|
|
|
-static int __ip_vs_tcp_init(struct net *net, struct ip_vs_proto_data *pd)
|
|
|
+static int __ip_vs_tcp_init(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd)
|
|
|
{
|
|
|
- struct netns_ipvs *ipvs = net_ipvs(net);
|
|
|
-
|
|
|
ip_vs_init_hash_table(ipvs->tcp_apps, TCP_APP_TAB_SIZE);
|
|
|
pd->timeout_table = ip_vs_create_timeout_table((int *)tcp_timeouts,
|
|
|
sizeof(tcp_timeouts));
|
|
@@ -704,7 +702,7 @@ static int __ip_vs_tcp_init(struct net *net, struct ip_vs_proto_data *pd)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static void __ip_vs_tcp_exit(struct net *net, struct ip_vs_proto_data *pd)
|
|
|
+static void __ip_vs_tcp_exit(struct netns_ipvs *ipvs, struct ip_vs_proto_data *pd)
|
|
|
{
|
|
|
kfree(pd->timeout_table);
|
|
|
}
|