]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sched/act_gact.c
net_sched: switch to exit_batch for action pernet ops
[linux.git] / net / sched / act_gact.c
index e29a48ef7fc348aefdc720cf08d1509ac5b53559..9d632e92cad0d2368bfacd492457e22406b586e0 100644 (file)
@@ -235,16 +235,14 @@ static __net_init int gact_init_net(struct net *net)
        return tc_action_net_init(tn, &act_gact_ops);
 }
 
-static void __net_exit gact_exit_net(struct net *net)
+static void __net_exit gact_exit_net(struct list_head *net_list)
 {
-       struct tc_action_net *tn = net_generic(net, gact_net_id);
-
-       tc_action_net_exit(tn);
+       tc_action_net_exit(net_list, gact_net_id);
 }
 
 static struct pernet_operations gact_net_ops = {
        .init = gact_init_net,
-       .exit = gact_exit_net,
+       .exit_batch = gact_exit_net,
        .id   = &gact_net_id,
        .size = sizeof(struct tc_action_net),
 };