Commit 61c83de 1 parent 883ce78 commit 61c83de Copy full SHA for 61c83de
File tree 1 file changed +1
-1
lines changed
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -2280,7 +2280,6 @@ static void __net_exit __ip_vs_cleanup(struct net *net)
2280
2280
{
2281
2281
struct netns_ipvs * ipvs = net_ipvs (net );
2282
2282
2283
- nf_unregister_net_hooks (net , ip_vs_ops , ARRAY_SIZE (ip_vs_ops ));
2284
2283
ip_vs_service_net_cleanup (ipvs ); /* ip_vs_flush() with locks */
2285
2284
ip_vs_conn_net_cleanup (ipvs );
2286
2285
ip_vs_app_net_cleanup (ipvs );
@@ -2295,6 +2294,7 @@ static void __net_exit __ip_vs_dev_cleanup(struct net *net)
2295
2294
{
2296
2295
struct netns_ipvs * ipvs = net_ipvs (net );
2297
2296
EnterFunction (2 );
2297
+ nf_unregister_net_hooks (net , ip_vs_ops , ARRAY_SIZE (ip_vs_ops ));
2298
2298
ipvs -> enable = 0 ; /* Disable packet reception */
2299
2299
smp_wmb ();
2300
2300
ip_vs_sync_net_cleanup (ipvs );
You can’t perform that action at this time.
0 commit comments