]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sched/act_bpf.c
net_sched: switch to exit_batch for action pernet ops
[linux.git] / net / sched / act_bpf.c
index e6c477fa9ca51cd8e6fb5a4fa4b1a63795c45e05..b3f2c15affa7b2d1b533163b6d88b3d518635d7d 100644 (file)
@@ -401,16 +401,14 @@ static __net_init int bpf_init_net(struct net *net)
        return tc_action_net_init(tn, &act_bpf_ops);
 }
 
-static void __net_exit bpf_exit_net(struct net *net)
+static void __net_exit bpf_exit_net(struct list_head *net_list)
 {
-       struct tc_action_net *tn = net_generic(net, bpf_net_id);
-
-       tc_action_net_exit(tn);
+       tc_action_net_exit(net_list, bpf_net_id);
 }
 
 static struct pernet_operations bpf_net_ops = {
        .init = bpf_init_net,
-       .exit = bpf_exit_net,
+       .exit_batch = bpf_exit_net,
        .id   = &bpf_net_id,
        .size = sizeof(struct tc_action_net),
 };