Searched refs:bpf_prog (Results 51 - 75 of 260) sorted by relevance

1234567891011

/linux-master/include/linux/
H A Dskmsg.h57 struct bpf_prog *msg_parser;
58 struct bpf_prog *stream_parser;
59 struct bpf_prog *stream_verdict;
60 struct bpf_prog *skb_verdict;
472 static inline void psock_set_prog(struct bpf_prog **pprog,
473 struct bpf_prog *prog)
480 static inline int psock_replace_prog(struct bpf_prog **pprog,
481 struct bpf_prog *prog,
482 struct bpf_prog *old)
H A Dbtf.h113 struct bpf_prog;
115 typedef int (*btf_kfunc_filter_t)(const struct bpf_prog *prog, u32 kfunc_id);
522 struct btf *bpf_prog_get_target_btf(const struct bpf_prog *prog);
524 const struct bpf_prog *prog);
526 const struct bpf_prog *prog);
553 struct bpf_prog *prog)
H A Dbpf_verifier.h667 struct bpf_prog *prog; /* eBPF program being verified */
783 int bpf_prog_offload_verifier_prep(struct bpf_prog *prog);
794 static inline u64 bpf_trampoline_compute_key(const struct bpf_prog *tgt_prog,
813 const struct bpf_prog *prog,
814 const struct bpf_prog *tgt_prog,
836 static inline enum bpf_prog_type resolve_prog_type(const struct bpf_prog *prog)
842 static inline bool bpf_prog_check_recur(const struct bpf_prog *prog)
/linux-master/include/trace/events/
H A Dxdp.h32 const struct bpf_prog *xdp, u32 act),
93 const struct bpf_prog *xdp,
143 const struct bpf_prog *xdp,
152 const struct bpf_prog *xdp,
174 const struct bpf_prog *xdp,
183 const struct bpf_prog *xdp,
/linux-master/drivers/hid/bpf/
H A Dhid_bpf_jmp_table.c34 struct bpf_prog *prog;
44 struct bpf_prog *progs[HID_BPF_MAX_PROGS]; /* idx -> progs mapping */
76 struct bpf_prog *prog,
308 static int hid_bpf_insert_prog(int prog_fd, struct bpf_prog *prog)
350 int hid_bpf_get_prog_attach_type(struct bpf_prog *prog)
398 int prog_fd, struct bpf_prog *prog, __u32 flags)
/linux-master/drivers/net/vmxnet3/
H A Dvmxnet3_xdp.c14 struct bpf_prog *prog)
41 struct bpf_prog *new_bpf_prog = bpf->prog;
42 struct bpf_prog *old_bpf_prog;
252 struct bpf_prog *prog)
330 struct bpf_prog *xdp_prog;
375 struct bpf_prog *xdp_prog;
/linux-master/drivers/net/ethernet/amazon/ena/
H A Dena_xdp.c234 struct bpf_prog *prog,
237 struct bpf_prog *old_bpf_prog;
254 struct bpf_prog *prog)
256 struct bpf_prog *old_bpf_prog = xchg(&adapter->xdp_bpf_prog, prog);
291 struct bpf_prog *prog = bpf->prog;
292 struct bpf_prog *old_bpf_prog;
H A Dena_xdp.h35 struct bpf_prog *prog,
85 struct bpf_prog *xdp_prog;
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_xdp.c10 int igc_xdp_set_prog(struct igc_adapter *adapter, struct bpf_prog *prog,
15 struct bpf_prog *old_prog;
/linux-master/arch/powerpc/net/
H A Dbpf_jit.h164 int bpf_jit_build_body(struct bpf_prog *fp, u32 *image, u32 *fimage, struct codegen_context *ctx,
171 int bpf_add_extable_entry(struct bpf_prog *fp, u32 *image, u32 *fimage, int pass,
/linux-master/kernel/bpf/
H A Dlink_iter.c48 struct bpf_prog *prog;
H A Dbpf_lsm.c72 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog,
98 const struct bpf_prog *prog)
143 static bool bpf_ima_inode_hash_allowed(const struct bpf_prog *prog)
197 bpf_lsm_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
380 bool bpf_lsm_is_trusted(const struct bpf_prog *prog)
H A Dbpf_iter.c25 struct bpf_prog *prog;
334 struct bpf_prog *prog)
339 bool bpf_iter_prog_supported(struct bpf_prog *prog)
373 bpf_iter_get_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog)
412 struct bpf_prog *new_prog,
413 struct bpf_prog *old_prog)
508 struct bpf_prog *prog)
581 struct bpf_prog *prog)
596 struct bpf_prog *prog;
672 struct bpf_prog *bpf_iter_get_inf
[all...]
H A Dsyscall.c1340 * the bpf_prog.o must have BTF to begin with
2142 static int find_prog_type(enum bpf_prog_type type, struct bpf_prog *prog)
2172 static void bpf_audit_prog(const struct bpf_prog *prog, unsigned int op)
2191 static int bpf_prog_alloc_id(struct bpf_prog *prog)
2210 void bpf_prog_free_id(struct bpf_prog *prog)
2239 static void __bpf_prog_put_noref(struct bpf_prog *prog, bool deferred)
2263 struct bpf_prog *prog;
2273 static void __bpf_prog_put(struct bpf_prog *prog)
2287 void bpf_prog_put(struct bpf_prog *prog)
2295 struct bpf_prog *pro
[all...]
/linux-master/net/ipv4/
H A Dbpf_tcp_ca.c62 const struct bpf_prog *prog,
151 static u32 prog_ops_moff(const struct bpf_prog *prog)
166 const struct bpf_prog *prog)
253 const struct bpf_prog *prog)
/linux-master/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_txrx.h78 struct bpf_prog;
189 struct bpf_prog *xdp_prog; /* optional XDP BPF program */
264 int fun_rxq_set_bpf(struct funeth_rxq *q, struct bpf_prog *prog);
/linux-master/net/bpf/
H A Dbpf_dummy_struct_ops.c84 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
161 const struct bpf_prog *prog,
169 const struct bpf_prog *prog)
/linux-master/tools/testing/selftests/net/
H A Dpsock_fanout.c118 struct sock_fprog bpf_prog; local
120 bpf_prog.filter = bpf_filter;
121 bpf_prog.len = ARRAY_SIZE(bpf_filter);
123 if (setsockopt(fd, SOL_PACKET, PACKET_FANOUT_DATA, &bpf_prog,
124 sizeof(bpf_prog))) {
/linux-master/net/sched/
H A Dact_bpf.c26 struct bpf_prog *filter;
41 struct bpf_prog *filter;
191 struct bpf_prog *fp;
226 struct bpf_prog *fp;
253 struct bpf_prog *filter = cfg->filter;
/linux-master/arch/x86/net/
H A Dbpf_jit_comp.c606 static void emit_bpf_tail_call_indirect(struct bpf_prog *bpf_prog, argument
657 if (bpf_prog->aux->exception_boundary) {
662 if (bpf_arena_get_kern_vm_start(bpf_prog->aux->arena))
673 offsetof(struct bpf_prog, bpf_func));
688 static void emit_bpf_tail_call_direct(struct bpf_prog *bpf_prog, argument
718 if (bpf_prog->aux->exception_boundary) {
723 if (bpf_arena_get_kern_vm_start(bpf_prog->aux->arena))
739 static void bpf_tail_call_direct_fixup(struct bpf_prog *pro
1269 do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, u8 *rw_image, int oldproglen, struct jit_context *ctx, bool jmp_padding) argument
[all...]
H A Dbpf_jit_comp32.c1369 offsetof(struct bpf_prog, bpf_func));
1569 static int emit_kfunc_call(const struct bpf_prog *bpf_prog, u8 *end_addr, argument
1581 fm = bpf_jit_find_kfunc_model(bpf_prog, insn);
1659 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image, argument
1662 struct bpf_insn *insn = bpf_prog->insnsi;
1663 int insn_cnt = bpf_prog->len;
1670 emit_prologue(&prog, bpf_prog->aux->stack_depth);
1701 &prog, bpf_prog
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c112 struct bpf_prog *prog)
191 static int nfp_bpf_verifier_prep(struct bpf_prog *prog)
219 static int nfp_bpf_translate(struct bpf_prog *prog)
247 static void nfp_bpf_destroy(struct bpf_prog *prog)
484 bool nfp_bpf_offload_check_mtu(struct nfp_net *nn, struct bpf_prog *prog,
496 nfp_net_bpf_load(struct nfp_net *nn, struct bpf_prog *prog,
575 int nfp_net_bpf_offload(struct nfp_net *nn, struct bpf_prog *prog,
/linux-master/net/core/
H A Dsock_reuseport.c467 struct bpf_prog *prog;
499 struct bpf_prog *prog, struct sk_buff *skb,
575 struct bpf_prog *prog;
628 struct bpf_prog *prog;
684 int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog)
687 struct bpf_prog *old_prog;
719 struct bpf_prog *old_prog;
H A Dsock_map.c27 static int sock_map_prog_update(struct bpf_map *map, struct bpf_prog *prog,
28 struct bpf_prog *old, u32 which);
60 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog)
82 struct bpf_prog *prog;
216 struct bpf_prog *stream_verdict = NULL;
217 struct bpf_prog *stream_parser = NULL;
218 struct bpf_prog *skb_verdict = NULL;
219 struct bpf_prog *msg_parser = NULL;
752 struct bpf_prog *prog;
1363 struct bpf_prog *pro
[all...]
/linux-master/include/net/mana/
H A Dmana.h330 struct bpf_prog __rcu *bpf_prog; member in struct:mana_rxq
432 struct bpf_prog *bpf_prog; member in struct:mana_port_context
469 struct bpf_prog *mana_xdp_get(struct mana_port_context *apc);
470 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog);

Completed in 549 milliseconds

1234567891011