Home
last modified time | relevance | path

Searched refs:run_array (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/kernel/bpf/
Dnet_namespace.c58 struct bpf_prog_array *run_array; in netns_bpf_run_array_detach() local
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()
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()
170 struct bpf_prog_array *run_array; in bpf_netns_link_update_prog() local
188 run_array = rcu_dereference_protected(net->bpf.run_array[type], in bpf_netns_link_update_prog()
191 ret = bpf_prog_array_update_at(run_array, idx, new_prog); in bpf_netns_link_update_prog()
251 struct bpf_prog_array *run_array; in __netns_bpf_prog_query() local
254 run_array = rcu_dereference_protected(net->bpf.run_array[type], in __netns_bpf_prog_query()
[all …]
/kernel/linux/linux-5.10/include/net/netns/
Dbpf.h16 struct bpf_prog_array __rcu *run_array[MAX_NETNS_BPF_ATTACH_TYPE]; member
/kernel/linux/linux-5.10/include/linux/
Dfilter.h1390 struct bpf_prog_array *run_array; in bpf_sk_lookup_run_v4() local
1395 run_array = rcu_dereference(net->bpf.run_array[NETNS_BPF_SK_LOOKUP]); in bpf_sk_lookup_run_v4()
1396 if (run_array) { in bpf_sk_lookup_run_v4()
1407 act = BPF_PROG_SK_LOOKUP_RUN_ARRAY(run_array, ctx, BPF_PROG_RUN); in bpf_sk_lookup_run_v4()
1428 struct bpf_prog_array *run_array; in bpf_sk_lookup_run_v6() local
1433 run_array = rcu_dereference(net->bpf.run_array[NETNS_BPF_SK_LOOKUP]); in bpf_sk_lookup_run_v6()
1434 if (run_array) { in bpf_sk_lookup_run_v6()
1445 act = BPF_PROG_SK_LOOKUP_RUN_ARRAY(run_array, ctx, BPF_PROG_RUN); in bpf_sk_lookup_run_v6()
/kernel/linux/linux-5.10/net/core/
Dflow_dissector.c89 if (rcu_access_pointer(ns->bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check()
96 if (rcu_access_pointer(init_net.bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check()
978 struct bpf_prog_array *run_array; in __skb_flow_dissect() local
981 run_array = rcu_dereference(init_net.bpf.run_array[type]); in __skb_flow_dissect()
982 if (!run_array) in __skb_flow_dissect()
983 run_array = rcu_dereference(net->bpf.run_array[type]); in __skb_flow_dissect()
985 if (run_array) { in __skb_flow_dissect()
1004 prog = READ_ONCE(run_array->items[0].prog); in __skb_flow_dissect()