Lines Matching refs:bpf

60 	run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL,  in netns_bpf_run_array_detach()
71 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index()
84 list_for_each(pos, &net->bpf.links[type]) in link_count()
95 list_for_each_entry(pos, &net->bpf.links[type], node) { in fill_prog_array()
133 old_array = rcu_dereference_protected(net->bpf.run_array[type], in bpf_netns_link_release()
141 rcu_assign_pointer(net->bpf.run_array[type], new_array); in bpf_netns_link_release()
188 run_array = rcu_dereference_protected(net->bpf.run_array[type], in bpf_netns_link_update_prog()
254 run_array = rcu_dereference_protected(net->bpf.run_array[type], in __netns_bpf_prog_query()
315 if (!list_empty(&net->bpf.links[type])) { in netns_bpf_prog_attach()
331 attached = net->bpf.progs[type]; in netns_bpf_prog_attach()
338 run_array = rcu_dereference_protected(net->bpf.run_array[type], in netns_bpf_prog_attach()
349 rcu_assign_pointer(net->bpf.run_array[type], run_array); in netns_bpf_prog_attach()
352 net->bpf.progs[type] = prog; in netns_bpf_prog_attach()
370 if (!list_empty(&net->bpf.links[type])) in __netns_bpf_prog_detach()
373 attached = net->bpf.progs[type]; in __netns_bpf_prog_detach()
377 net->bpf.progs[type] = NULL; in __netns_bpf_prog_detach()
436 if (net->bpf.progs[type]) { in netns_bpf_link_attach()
461 list_add_tail(&net_link->node, &net->bpf.links[type]); in netns_bpf_link_attach()
464 run_array = rcu_replace_pointer(net->bpf.run_array[type], run_array, in netns_bpf_link_attach()
533 INIT_LIST_HEAD(&net->bpf.links[type]); in netns_bpf_pernet_init()
546 list_for_each_entry(net_link, &net->bpf.links[type], node) { in netns_bpf_pernet_pre_exit()
550 if (net->bpf.progs[type]) in netns_bpf_pernet_pre_exit()
551 bpf_prog_put(net->bpf.progs[type]); in netns_bpf_pernet_pre_exit()