Commit 72634d7 1 parent 20e4ded commit 72634d7 Copy full SHA for 72634d7
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 @@ -2268,7 +2268,6 @@ static void __net_exit __ip_vs_cleanup(struct net *net)
2268
2268
{
2269
2269
struct netns_ipvs * ipvs = net_ipvs (net );
2270
2270
2271
- nf_unregister_net_hooks (net , ip_vs_ops , ARRAY_SIZE (ip_vs_ops ));
2272
2271
ip_vs_service_net_cleanup (ipvs ); /* ip_vs_flush() with locks */
2273
2272
ip_vs_conn_net_cleanup (ipvs );
2274
2273
ip_vs_app_net_cleanup (ipvs );
@@ -2283,6 +2282,7 @@ static void __net_exit __ip_vs_dev_cleanup(struct net *net)
2283
2282
{
2284
2283
struct netns_ipvs * ipvs = net_ipvs (net );
2285
2284
EnterFunction (2 );
2285
+ nf_unregister_net_hooks (net , ip_vs_ops , ARRAY_SIZE (ip_vs_ops ));
2286
2286
ipvs -> enable = 0 ; /* Disable packet reception */
2287
2287
smp_wmb ();
2288
2288
ip_vs_sync_net_cleanup (ipvs );
You can’t perform that action at this time.
0 commit comments