/linux-master/drivers/net/ethernet/qlogic/qede/ |
H A D | qede.h | 521 struct bpf_prog *new_prog; member in union:qede_reload_args::__anon1563
|
H A D | qede_filter.c | 1025 old = xchg(&edev->xdp_prog, args->u.new_prog); 1036 args.u.new_prog = prog;
|
/linux-master/include/linux/ |
H A D | bpf.h | 1608 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog, 2976 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog); 3032 static inline int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, argument
|
/linux-master/kernel/bpf/ |
H A D | bpf_iter.c | 412 struct bpf_prog *new_prog, 423 if (link->prog->type != new_prog->type || 424 link->prog->expected_attach_type != new_prog->expected_attach_type || 425 link->prog->aux->attach_btf_id != new_prog->aux->attach_btf_id) { 430 old_prog = xchg(&link->prog, new_prog); 411 bpf_iter_link_replace(struct bpf_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument
|
H A D | cgroup.c | 616 struct bpf_prog *new_prog = prog ? : link->link.prog; local 633 atype = bpf_cgroup_atype_find(type, new_prog->aux->attach_btf_id); 688 err = bpf_trampoline_link_cgroup_shim(new_prog, atype); 709 bpf_trampoline_unlink_cgroup_shim(new_prog); 788 * @new_prog: &struct bpf_prog for the target BPF program with its refcnt 795 struct bpf_prog *new_prog) 803 atype = bpf_cgroup_atype_find(link->type, new_prog->aux->attach_btf_id); 809 if (link->link.prog->type != new_prog->type) 821 old_prog = xchg(&link->link.prog, new_prog); 827 static int cgroup_bpf_replace(struct bpf_link *link, struct bpf_prog *new_prog, argument 793 __cgroup_bpf_replace(struct cgroup *cgrp, struct bpf_cgroup_link *link, struct bpf_prog *new_prog) argument [all...] |
H A D | net_namespace.c | 165 struct bpf_prog *new_prog, 177 if (new_prog->type != link->prog->type) 192 ret = bpf_prog_array_update_at(run_array, idx, new_prog); 196 old_prog = xchg(&link->prog, new_prog); 164 bpf_netns_link_update_prog(struct bpf_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument
|
H A D | offload.c | 270 int bpf_prog_dev_bound_inherit(struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument 280 new_prog->aux->dev_bound = old_prog->aux->dev_bound; 281 new_prog->aux->offload_requested = old_prog->aux->offload_requested; 289 err = __bpf_prog_dev_bound_init(new_prog, old_prog->aux->offload->netdev);
|
H A D | syscall.c | 5342 struct bpf_prog *old_prog = NULL, *new_prog; local 5363 new_prog = bpf_prog_get(attr->link_update.new_prog_fd); 5364 if (IS_ERR(new_prog)) { 5365 ret = PTR_ERR(new_prog); 5382 ret = link->ops->update_prog(link, new_prog, old_prog); 5390 bpf_prog_put(new_prog);
|
H A D | verifier.c | 18632 struct bpf_prog *new_prog, u32 off, u32 cnt) 18635 struct bpf_insn *insn = new_prog->insnsi; 18648 prog_len = new_prog->len; 18693 struct bpf_prog *new_prog; local 18703 new_prog = bpf_patch_insn_single(env->prog, off, patch, len); 18704 if (IS_ERR(new_prog)) { 18705 if (PTR_ERR(new_prog) == -ERANGE) 18712 adjust_insn_aux_data(env, new_data, new_prog, off, len); 18714 adjust_poke_descs(new_prog, off, len); 18715 return new_prog; 18630 adjust_insn_aux_data(struct bpf_verifier_env *env, struct bpf_insn_aux_data *new_data, struct bpf_prog *new_prog, u32 off, u32 cnt) argument 18984 struct bpf_prog *new_prog; local 19088 struct bpf_prog *new_prog; local 19801 struct bpf_prog *new_prog; local 20571 struct bpf_prog *new_prog; local 20664 struct bpf_prog *new_prog; local [all...] |
/linux-master/net/core/ |
H A D | dev.c | 9401 struct bpf_xdp_link *link, struct bpf_prog *new_prog, 9415 if (link && (new_prog || old_prog)) 9465 /* put effective new program into new_prog */ 9467 new_prog = link->link.prog; 9469 if (new_prog) { 9482 if (!offload && bpf_prog_is_offloaded(new_prog->aux)) { 9486 if (bpf_prog_is_dev_bound(new_prog->aux) && !bpf_offload_dev_match(new_prog, dev)) { 9490 if (new_prog->expected_attach_type == BPF_XDP_DEVMAP) { 9494 if (new_prog 9400 dev_xdp_attach(struct net_device *dev, struct netlink_ext_ack *extack, struct bpf_xdp_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog, u32 flags) argument 9608 bpf_xdp_link_update(struct bpf_link *link, struct bpf_prog *new_prog, struct bpf_prog *old_prog) argument 9734 struct bpf_prog *new_prog = NULL, *old_prog = NULL; local [all...] |
H A D | filter.c | 552 * @new_prog: allocated 'struct bpf_prog' or NULL 565 * bpf_convert_filter(old_prog, old_len, new_prog, &new_len, &seen_ld_abs) 568 struct bpf_prog *new_prog, int *new_len, 583 if (new_prog) { 584 first_insn = new_prog->insnsi; 596 if (new_prog) { 832 if (new_prog && new_prog->aux->stack_depth < stack_off) 833 new_prog->aux->stack_depth = stack_off; 882 if (new_prog) 567 bpf_convert_filter(struct sock_filter *prog, int len, struct bpf_prog *new_prog, int *new_len, bool *seen_ld_abs) argument [all...] |
/linux-master/net/netfilter/ |
H A D | nf_bpf_link.c | 162 static int bpf_nf_link_update(struct bpf_link *link, struct bpf_prog *new_prog, argument
|
/linux-master/tools/perf/util/ |
H A D | bpf-prologue.h | 18 struct bpf_insn *new_prog, size_t *new_cnt, 27 struct bpf_insn *new_prog __maybe_unused,
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_metadata.c | 369 struct bpf_program *new_prog, *prog; local 503 new_prog = bpf_object__find_program_by_name(bpf_obj2->obj, "freplace_rx"); 504 bpf_program__set_attach_target(new_prog, bpf_program__fd(prog), "rx");
|