Searched refs:run_array (Results 1 – 4 of 4) sorted by relevance
/linux/kernel/bpf/ |
A D | net_namespace.c | 60 run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL, in netns_bpf_run_array_detach() 62 bpf_prog_array_free(run_array); in netns_bpf_run_array_detach() 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() 256 if (run_array) in __netns_bpf_prog_query() 338 run_array = rcu_dereference_protected(net->bpf.run_array[type], in netns_bpf_prog_attach() 340 if (run_array) { in netns_bpf_prog_attach() 344 if (!run_array) { in netns_bpf_prog_attach() 349 rcu_assign_pointer(net->bpf.run_array[type], run_array); in netns_bpf_prog_attach() 456 if (!run_array) { in netns_bpf_link_attach() [all …]
|
/linux/include/linux/ |
A D | filter.h | 1438 struct bpf_prog_array *run_array; in bpf_sk_lookup_run_v4() local 1443 run_array = rcu_dereference(net->bpf.run_array[NETNS_BPF_SK_LOOKUP]); in bpf_sk_lookup_run_v4() 1444 if (run_array) { in bpf_sk_lookup_run_v4() 1455 act = BPF_PROG_SK_LOOKUP_RUN_ARRAY(run_array, ctx, bpf_prog_run); in bpf_sk_lookup_run_v4() 1476 struct bpf_prog_array *run_array; in bpf_sk_lookup_run_v6() local 1481 run_array = rcu_dereference(net->bpf.run_array[NETNS_BPF_SK_LOOKUP]); in bpf_sk_lookup_run_v6() 1482 if (run_array) { in bpf_sk_lookup_run_v6() 1493 act = BPF_PROG_SK_LOOKUP_RUN_ARRAY(run_array, ctx, bpf_prog_run); in bpf_sk_lookup_run_v6()
|
/linux/net/core/ |
A D | flow_dissector.c | 90 if (rcu_access_pointer(ns->bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check() 97 if (rcu_access_pointer(init_net.bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check() 988 struct bpf_prog_array *run_array; in __skb_flow_dissect() local 991 run_array = rcu_dereference(init_net.bpf.run_array[type]); in __skb_flow_dissect() 992 if (!run_array) in __skb_flow_dissect() 993 run_array = rcu_dereference(net->bpf.run_array[type]); in __skb_flow_dissect() 995 if (run_array) { in __skb_flow_dissect() 1014 prog = READ_ONCE(run_array->items[0].prog); in __skb_flow_dissect()
|
/linux/include/net/netns/ |
A D | bpf.h | 16 struct bpf_prog_array __rcu *run_array[MAX_NETNS_BPF_ATTACH_TYPE]; member
|
Completed in 12 milliseconds