Home
last modified time | relevance | path

Searched refs:bpf_prog (Results 1 – 25 of 29) sorted by relevance

12

/net/netfilter/
A Dnf_bpf_link.c11 static unsigned int nf_hook_run_bpf(void *bpf_prog, struct sk_buff *skb, in nf_hook_run_bpf() argument
14 const struct bpf_prog *prog = bpf_prog; in nf_hook_run_bpf()
165 static int bpf_nf_link_update(struct bpf_link *link, struct bpf_prog *new_prog, in bpf_nf_link_update()
166 struct bpf_prog *old_prog) in bpf_nf_link_update()
210 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in bpf_nf_link_attach()
293 const struct bpf_prog *prog, in nf_is_valid_access()
324 bpf_nf_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) in bpf_nf_func_proto()
A Dxt_bpf.c25 struct bpf_prog **ret) in __bpf_mt_check_bytecode()
43 static int __bpf_mt_check_fd(int fd, struct bpf_prog **ret) in __bpf_mt_check_fd()
45 struct bpf_prog *prog; in __bpf_mt_check_fd()
55 static int __bpf_mt_check_path(const char *path, struct bpf_prog **ret) in __bpf_mt_check_path()
A Dnfnetlink_hook.c80 const struct bpf_prog *prog) in nfnl_hook_put_bpf_prog_info()
/net/core/
A Dsock_map.c88 struct bpf_prog *prog; in sock_map_prog_detach()
222 struct bpf_prog *skb_verdict = NULL; in sock_map_link()
223 struct bpf_prog *msg_parser = NULL; in sock_map_link()
762 struct bpf_prog *prog; in sock_map_seq_show()
1375 struct bpf_prog *prog; in sock_hash_seq_show()
1479 struct bpf_prog **cur_pprog; in sock_map_prog_link_lookup()
1528 struct bpf_prog **pprog; in sock_map_prog_update()
1560 struct bpf_prog **pprog; in sock_map_bpf_prog_query()
1561 struct bpf_prog *prog; in sock_map_bpf_prog_query()
1747 struct bpf_prog *prog, in sock_map_link_update_prog()
[all …]
A Dsock_reuseport.c466 struct bpf_prog *prog; in reuseport_stop_listen_sock()
498 struct bpf_prog *prog, struct sk_buff *skb, in run_bpf_filter()
574 struct bpf_prog *prog; in reuseport_select_sock()
627 struct bpf_prog *prog; in reuseport_migrate_sock()
683 int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog) in reuseport_attach_prog()
686 struct bpf_prog *old_prog; in reuseport_attach_prog()
718 struct bpf_prog *old_prog; in reuseport_detach_prog()
A Dfilter.c1268 static struct bpf_prog *bpf_migrate_filter(struct bpf_prog *fp) in bpf_migrate_filter()
1271 struct bpf_prog *old_fp; in bpf_migrate_filter()
1338 static struct bpf_prog *bpf_prepare_filter(struct bpf_prog *fp, in bpf_prepare_filter()
1390 struct bpf_prog *fp; in bpf_prog_create()
1436 struct bpf_prog *fp; in bpf_prog_create_from_user()
1511 struct bpf_prog *prog; in __get_filter()
1619 struct bpf_prog *prog; in sk_reuseport_attach_bpf()
11425 const struct bpf_prog *prog) in sk_reuseport_func_proto()
11514 struct bpf_prog *prog, in sk_reuseport_convert_ctx_access()
11674 struct bpf_prog *prog, in sk_lookup_convert_ctx_access()
[all …]
A Dptp_classifier.c102 static struct bpf_prog *ptp_insns __read_mostly;
A Dskmsg.c899 struct bpf_prog *prog; in sk_psock_msg_verdict()
987 struct bpf_prog *prog; in sk_psock_tls_strp_read()
1088 struct bpf_prog *prog; in sk_psock_strp_read()
1122 struct bpf_prog *prog; in sk_psock_strp_parse()
1215 struct bpf_prog *prog; in sk_psock_verdict_recv()
A Dbpf_sk_storage.c356 static bool bpf_sk_storage_tracing_allowed(const struct bpf_prog *prog) in bpf_sk_storage_tracing_allowed()
797 struct bpf_prog *prog; in DEFINE_BPF_ITER_FUNC()
847 static int bpf_iter_attach_map(struct bpf_prog *prog, in bpf_iter_attach_map()
A Dlwt_bpf.c19 struct bpf_prog *prog;
341 struct bpf_prog *p; in bpf_parse_prog()
A Ddev.c4322 const struct bpf_prog *prog; in tcx_run()
5221 const struct bpf_prog *xdp_prog) in bpf_prog_run_generic_xdp()
5350 const struct bpf_prog *xdp_prog) in netif_receive_generic_xdp()
6130 struct bpf_prog *new = xdp->prog; in generic_xdp_install()
10061 struct bpf_prog *prog = dev_xdp_prog(dev, mode); in dev_xdp_prog_id()
10074 struct bpf_prog *prog) in dev_xdp_set_prog()
10082 u32 flags, struct bpf_prog *prog) in dev_xdp_install()
10130 struct bpf_prog *prog; in dev_xdp_uninstall()
10160 struct bpf_prog *old_prog, u32 flags) in dev_xdp_attach()
10163 struct bpf_prog *cur_prog; in dev_xdp_attach()
[all …]
A Dflow_dissector.c78 struct bpf_prog *prog) in flow_dissector_bpf_prog_attach_check()
1004 u32 bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx, in bpf_flow_dissect()
1148 struct bpf_prog *prog; in __skb_flow_dissect()
/net/sched/
A Dact_bpf.c26 struct bpf_prog *filter;
41 struct bpf_prog *filter; in tcf_bpf_act()
191 struct bpf_prog *fp; in tcf_bpf_init_from_ops()
226 struct bpf_prog *fp; in tcf_bpf_init_from_efd()
253 struct bpf_prog *filter = cfg->filter; in tcf_bpf_cfg_cleanup()
A Dbpf_qdisc.c35 const struct bpf_prog *prog, in BTF_ID_LIST_SINGLE()
136 const struct bpf_prog *prog) in BTF_ID_LIST_SINGLE()
165 static int bpf_qdisc_gen_epilogue(struct bpf_insn *insn_buf, const struct bpf_prog *prog, in BTF_ID_LIST_SINGLE()
314 static int bpf_qdisc_kfunc_filter(const struct bpf_prog *prog, u32 kfunc_id) in bpf_qdisc_kfunc_filter()
A Dcls_bpf.c39 struct bpf_prog *filter;
343 struct bpf_prog *fp; in cls_bpf_prog_from_ops()
379 struct bpf_prog *fp; in cls_bpf_prog_from_efd()
/net/bpf/
A Dbpf_dummy_struct_ops.c96 static int check_test_run_args(struct bpf_prog *prog, struct bpf_dummy_ops_test_args *args) in check_test_run_args()
129 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run()
213 const struct bpf_prog *prog, in bpf_dummy_ops_is_valid_access()
221 const struct bpf_prog *prog) in bpf_dummy_ops_check_member()
A Dtest_run.c285 static int xdp_test_run_batch(struct xdp_test_data *xdp, struct bpf_prog *prog, in xdp_test_run_batch()
372 static int bpf_test_run_xdp_live(struct bpf_prog *prog, struct xdp_buff *ctx, in bpf_test_run_xdp_live()
400 static int bpf_test_run(struct bpf_prog *prog, void *ctx, u32 repeat, in bpf_test_run()
684 int bpf_prog_test_run_tracing(struct bpf_prog *prog, in bpf_prog_test_run_tracing()
735 struct bpf_prog *prog;
756 int bpf_prog_test_run_raw_tp(struct bpf_prog *prog, in bpf_prog_test_run_raw_tp()
984 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_skb()
1205 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_xdp()
1367 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector()
1536 int bpf_prog_test_run_syscall(struct bpf_prog *prog, in bpf_prog_test_run_syscall()
[all …]
/net/packet/
A Dinternal.h92 struct bpf_prog __rcu *bpf_prog; member
A Daf_packet.c1491 struct bpf_prog *prog; in fanout_demux_bpf()
1495 prog = rcu_dereference(f->bpf_prog); in fanout_demux_bpf()
1615 RCU_INIT_POINTER(f->bpf_prog, NULL); in fanout_init_data()
1620 static void __fanout_set_data_bpf(struct packet_fanout *f, struct bpf_prog *new) in __fanout_set_data_bpf()
1622 struct bpf_prog *old; in __fanout_set_data_bpf()
1625 old = rcu_dereference_protected(f->bpf_prog, lockdep_is_held(&f->lock)); in __fanout_set_data_bpf()
1626 rcu_assign_pointer(f->bpf_prog, new); in __fanout_set_data_bpf()
1638 struct bpf_prog *new; in fanout_set_data_cbpf()
1660 struct bpf_prog *new; in fanout_set_data_ebpf()
/net/ipv4/
A Dbpf_tcp_ca.c46 const struct bpf_prog *prog, in bpf_tcp_ca_is_valid_access()
138 static u32 prog_ops_moff(const struct bpf_prog *prog) in prog_ops_moff()
153 const struct bpf_prog *prog) in bpf_tcp_ca_get_func_proto()
A Dtcp_ipv4.c3041 static int tcp_prog_seq_show(struct bpf_prog *prog, struct bpf_iter_meta *meta,
3364 struct bpf_prog *prog;
3406 struct bpf_prog *prog;
3760 const struct bpf_prog *prog)
/net/kcm/
A Dkcmsock.c390 struct bpf_prog *prog = psock->bpf_prog; in kcm_parse_func_strparser()
1223 struct bpf_prog *prog) in kcm_attach()
1265 psock->bpf_prog = prog; in kcm_attach()
1328 struct bpf_prog *prog; in kcm_attach_ioctl()
1399 bpf_prog_put(psock->bpf_prog); in kcm_unattach()
/net/ipv6/
A Dip6_fib.c2761 static int ipv6_route_prog_seq_show(struct bpf_prog *prog, in ipv6_route_prog_seq_show()
2776 struct bpf_prog *prog; in ipv6_route_seq_show()
2793 struct bpf_prog *prog; in ipv6_route_seq_stop()
/net/unix/
A Daf_unix.c3640 static int unix_prog_seq_show(struct bpf_prog *prog, struct bpf_iter_meta *meta, in unix_prog_seq_show()
3771 struct bpf_prog *prog; in bpf_iter_unix_seq_show()
3800 struct bpf_prog *prog; in bpf_iter_unix_seq_stop()
3928 const struct bpf_prog *prog) in bpf_iter_unix_get_func_proto()
/net/netlink/
A Daf_netlink.c2730 static int netlink_prog_seq_show(struct bpf_prog *prog, in DEFINE_BPF_ITER_FUNC()
2745 struct bpf_prog *prog; in netlink_seq_show()
2761 struct bpf_prog *prog; in netlink_seq_stop()

Completed in 132 milliseconds

12