Lines Matching refs:bpf
3 #include <linux/bpf.h>
4 #include <linux/bpf-netns.h>
61 run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL,
72 list_for_each_entry(pos, &net->bpf.links[type], node) {
85 list_for_each(pos, &net->bpf.links[type])
96 list_for_each_entry(pos, &net->bpf.links[type], node) {
134 old_array = rcu_dereference_protected(net->bpf.run_array[type],
142 rcu_assign_pointer(net->bpf.run_array[type], new_array);
189 run_array = rcu_dereference_protected(net->bpf.run_array[type],
255 run_array = rcu_dereference_protected(net->bpf.run_array[type],
316 if (!list_empty(&net->bpf.links[type])) {
332 attached = net->bpf.progs[type];
339 run_array = rcu_dereference_protected(net->bpf.run_array[type],
350 rcu_assign_pointer(net->bpf.run_array[type], run_array);
353 net->bpf.progs[type] = prog;
371 if (!list_empty(&net->bpf.links[type]))
374 attached = net->bpf.progs[type];
378 net->bpf.progs[type] = NULL;
437 if (net->bpf.progs[type]) {
462 list_add_tail(&net_link->node, &net->bpf.links[type]);
465 run_array = rcu_replace_pointer(net->bpf.run_array[type], run_array,
534 INIT_LIST_HEAD(&net->bpf.links[type]);
547 list_for_each_entry(net_link, &net->bpf.links[type], node) {
551 if (net->bpf.progs[type])
552 bpf_prog_put(net->bpf.progs[type]);