|
@@ -2110,13 +2110,15 @@ estimator_fail:
|
|
|
|
|
|
static void __net_exit __ip_vs_cleanup(struct net *net)
|
|
|
{
|
|
|
- ip_vs_service_net_cleanup(net); /* ip_vs_flush() with locks */
|
|
|
+ struct netns_ipvs *ipvs = net_ipvs(net);
|
|
|
+
|
|
|
+ ip_vs_service_net_cleanup(ipvs); /* ip_vs_flush() with locks */
|
|
|
ip_vs_conn_net_cleanup(net);
|
|
|
ip_vs_app_net_cleanup(net);
|
|
|
ip_vs_protocol_net_cleanup(net);
|
|
|
ip_vs_control_net_cleanup(net);
|
|
|
ip_vs_estimator_net_cleanup(net);
|
|
|
- IP_VS_DBG(2, "ipvs netns %d released\n", net_ipvs(net)->gen);
|
|
|
+ IP_VS_DBG(2, "ipvs netns %d released\n", ipvs->gen);
|
|
|
net->ipvs = NULL;
|
|
|
}
|
|
|
|