Home
last modified time | relevance | path

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

/net/netfilter/
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()
/net/core/
Dsock_reuseport.c227 struct bpf_prog *prog, struct sk_buff *skb, in run_bpf_filter()
272 struct bpf_prog *prog; in reuseport_select_sock()
320 int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog) in reuseport_attach_prog()
323 struct bpf_prog *old_prog; in reuseport_attach_prog()
351 struct bpf_prog *old_prog; in reuseport_detach_prog()
Dfilter.c537 struct bpf_prog *new_prog, int *new_len, in bpf_convert_filter()
1110 static int bpf_prog_store_orig_filter(struct bpf_prog *fp, in bpf_prog_store_orig_filter()
1133 static void bpf_release_orig_filter(struct bpf_prog *fp) in bpf_release_orig_filter()
1143 static void __bpf_prog_release(struct bpf_prog *prog) in __bpf_prog_release()
1218 static struct bpf_prog *bpf_migrate_filter(struct bpf_prog *fp) in bpf_migrate_filter()
1221 struct bpf_prog *old_fp; in bpf_migrate_filter()
1289 static struct bpf_prog *bpf_prepare_filter(struct bpf_prog *fp, in bpf_prepare_filter()
1338 int bpf_prog_create(struct bpf_prog **pfp, struct sock_fprog_kern *fprog) in bpf_prog_create()
1341 struct bpf_prog *fp; in bpf_prog_create()
1383 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog, in bpf_prog_create_from_user()
[all …]
Dptp_classifier.c102 static struct bpf_prog *ptp_insns __read_mostly;
Dsock_map.c63 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog) in sock_map_get_from_fd()
82 struct bpf_prog *prog; in sock_map_prog_detach()
178 struct bpf_prog *msg_parser, *skb_parser, *skb_verdict; in sock_map_link()
1058 int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog, in sock_map_prog_update()
1059 struct bpf_prog *old, u32 which) in sock_map_prog_update()
1062 struct bpf_prog **pprog; in sock_map_prog_update()
Dskmsg.c684 struct bpf_prog *prog; in sk_psock_msg_verdict()
717 static int sk_psock_bpf_run(struct sk_psock *psock, struct bpf_prog *prog, in sk_psock_bpf_run()
792 struct bpf_prog *prog; in sk_psock_tls_strp_read()
854 struct bpf_prog *prog; in sk_psock_strp_read()
885 struct bpf_prog *prog; in sk_psock_strp_parse()
Dflow_dissector.c78 struct bpf_prog *attached; in skb_flow_dissector_prog_query()
113 struct bpf_prog *prog) in skb_flow_dissector_bpf_prog_attach()
115 struct bpf_prog *attached; in skb_flow_dissector_bpf_prog_attach()
134 struct bpf_prog *attached; in flow_dissector_bpf_prog_detach()
845 bool bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx, in bpf_flow_dissect()
908 struct bpf_prog *attached = NULL; in __skb_flow_dissect()
Dlwt_bpf.c16 struct bpf_prog *prog;
335 struct bpf_prog *p; in bpf_parse_prog()
Ddev.c4260 struct bpf_prog *xdp_prog) in netif_receive_generic_xdp()
4375 void generic_xdp_tx(struct sk_buff *skb, struct bpf_prog *xdp_prog) in generic_xdp_tx()
4400 int do_xdp_generic(struct bpf_prog *xdp_prog, struct sk_buff *skb) in do_xdp_generic()
5123 struct bpf_prog *old = rtnl_dereference(dev->xdp_prog); in generic_xdp_install()
5124 struct bpf_prog *new = xdp->prog; in generic_xdp_install()
8430 struct bpf_prog *prog) in dev_xdp_install()
8488 struct bpf_prog *prog = NULL; in dev_change_xdp_fd()
Drtnetlink.c1375 const struct bpf_prog *generic_xdp_prog; in rtnl_xdp_prog_skb()
/net/sched/
Dact_bpf.c24 struct bpf_prog *filter;
39 struct bpf_prog *filter; in tcf_bpf_act()
187 struct bpf_prog *fp; in tcf_bpf_init_from_ops()
222 struct bpf_prog *fp; in tcf_bpf_init_from_efd()
249 struct bpf_prog *filter = cfg->filter; in tcf_bpf_cfg_cleanup()
Dcls_bpf.c38 struct bpf_prog *filter;
342 struct bpf_prog *fp; in cls_bpf_prog_from_ops()
378 struct bpf_prog *fp; in cls_bpf_prog_from_efd()
/net/packet/
Dinternal.h90 struct bpf_prog __rcu *bpf_prog; member
Daf_packet.c1404 struct bpf_prog *prog; in fanout_demux_bpf()
1408 prog = rcu_dereference(f->bpf_prog); in fanout_demux_bpf()
1525 RCU_INIT_POINTER(f->bpf_prog, NULL); in fanout_init_data()
1530 static void __fanout_set_data_bpf(struct packet_fanout *f, struct bpf_prog *new) in __fanout_set_data_bpf()
1532 struct bpf_prog *old; in __fanout_set_data_bpf()
1535 old = rcu_dereference_protected(f->bpf_prog, lockdep_is_held(&f->lock)); in __fanout_set_data_bpf()
1536 rcu_assign_pointer(f->bpf_prog, new); in __fanout_set_data_bpf()
1548 struct bpf_prog *new; in fanout_set_data_cbpf()
1570 struct bpf_prog *new; in fanout_set_data_ebpf()
/net/bpf/
Dtest_run.c17 static int bpf_test_run(struct bpf_prog *prog, void *ctx, u32 repeat, in bpf_test_run()
242 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_skb()
343 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_test_run_xdp()
397 int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, in bpf_prog_test_run_flow_dissector()
/net/kcm/
Dkcmsock.c385 struct bpf_prog *prog = psock->bpf_prog; in kcm_parse_func_strparser()
1338 struct bpf_prog *prog) in kcm_attach()
1380 psock->bpf_prog = prog; in kcm_attach()
1443 struct bpf_prog *prog; in kcm_attach_ioctl()
1514 bpf_prog_put(psock->bpf_prog); in kcm_unattach()
/net/ipv6/
Dseg6_local.c44 struct bpf_prog *prog;
828 struct bpf_prog *p; in parse_nla_bpf()