Lines Matching full:aux

110 	struct bpf_prog_offload *offload = prog->aux->offload;  in __bpf_prog_offload_destroy()
117 prog->aux->offload = NULL; in __bpf_prog_offload_destroy()
205 if (bpf_prog_is_offloaded(prog->aux) && (!ondev || !ondev->offdev)) { in __bpf_prog_dev_bound_init()
219 prog->aux->offload = offload; in __bpf_prog_dev_bound_init()
259 prog->aux->offload_requested = !(attr->prog_flags & BPF_F_XDP_DEV_BOUND_ONLY); in bpf_prog_dev_bound_init()
274 if (!bpf_prog_is_dev_bound(old_prog->aux)) in bpf_prog_dev_bound_inherit()
277 if (bpf_prog_is_offloaded(old_prog->aux)) in bpf_prog_dev_bound_inherit()
280 new_prog->aux->dev_bound = old_prog->aux->dev_bound; in bpf_prog_dev_bound_inherit()
281 new_prog->aux->offload_requested = old_prog->aux->offload_requested; in bpf_prog_dev_bound_inherit()
284 if (!old_prog->aux->offload) { in bpf_prog_dev_bound_inherit()
289 err = __bpf_prog_dev_bound_init(new_prog, old_prog->aux->offload->netdev); in bpf_prog_dev_bound_inherit()
302 offload = prog->aux->offload; in bpf_prog_offload_verifier_prep()
319 offload = env->prog->aux->offload; in bpf_prog_offload_verify_insn()
334 offload = env->prog->aux->offload; in bpf_prog_offload_finalize()
355 offload = env->prog->aux->offload; in bpf_prog_offload_replace_insn()
372 offload = env->prog->aux->offload; in bpf_prog_offload_remove_insns()
388 if (prog->aux->offload) { in bpf_prog_dev_bound_destroy()
389 list_del_init(&prog->aux->offload->offloads); in bpf_prog_dev_bound_destroy()
391 netdev = prog->aux->offload->netdev; in bpf_prog_dev_bound_destroy()
408 offload = prog->aux->offload; in bpf_prog_offload_translate()
438 struct bpf_prog_aux *aux = args->prog->aux; in bpf_prog_offload_info_fill_ns() local
445 if (aux->offload) { in bpf_prog_offload_info_fill_ns()
446 args->info->ifindex = aux->offload->netdev->ifindex; in bpf_prog_offload_info_fill_ns()
447 net = dev_net(aux->offload->netdev); in bpf_prog_offload_info_fill_ns()
468 struct bpf_prog_aux *aux = prog->aux; in bpf_prog_offload_info_fill() local
484 if (!aux->offload) { in bpf_prog_offload_info_fill()
490 info->jited_prog_len = aux->offload->jited_len; in bpf_prog_offload_info_fill()
494 if (copy_to_user(uinsns, aux->offload->jited_image, ulen)) { in bpf_prog_offload_info_fill()
700 if (!bpf_prog_is_dev_bound(prog->aux)) in __bpf_offload_dev_match()
703 offload = prog->aux->offload; in __bpf_offload_dev_match()
731 if (bpf_prog_is_offloaded(lhs->aux) != bpf_prog_is_offloaded(rhs->aux)) in bpf_prog_dev_bound_match()
735 ret = lhs->aux->offload && rhs->aux->offload && in bpf_prog_dev_bound_match()
736 lhs->aux->offload->netdev && in bpf_prog_dev_bound_match()
737 lhs->aux->offload->netdev == rhs->aux->offload->netdev; in bpf_prog_dev_bound_match()
850 if (!prog->aux->offload) in bpf_dev_bound_resolve_kfunc()
853 ops = prog->aux->offload->netdev->xdp_metadata_ops; in bpf_dev_bound_resolve_kfunc()