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()
252 prog->aux->offload_requested = !(attr->prog_flags & BPF_F_XDP_DEV_BOUND_ONLY); in bpf_prog_dev_bound_init()
267 if (!bpf_prog_is_dev_bound(old_prog->aux)) in bpf_prog_dev_bound_inherit()
270 if (bpf_prog_is_offloaded(old_prog->aux)) in bpf_prog_dev_bound_inherit()
273 new_prog->aux->dev_bound = old_prog->aux->dev_bound; in bpf_prog_dev_bound_inherit()
274 new_prog->aux->offload_requested = old_prog->aux->offload_requested; in bpf_prog_dev_bound_inherit()
277 if (!old_prog->aux->offload) { in bpf_prog_dev_bound_inherit()
282 err = __bpf_prog_dev_bound_init(new_prog, old_prog->aux->offload->netdev); in bpf_prog_dev_bound_inherit()
295 offload = prog->aux->offload; in bpf_prog_offload_verifier_prep()
312 offload = env->prog->aux->offload; in bpf_prog_offload_verify_insn()
327 offload = env->prog->aux->offload; in bpf_prog_offload_finalize()
348 offload = env->prog->aux->offload; in bpf_prog_offload_replace_insn()
365 offload = env->prog->aux->offload; in bpf_prog_offload_remove_insns()
381 if (prog->aux->offload) { in bpf_prog_dev_bound_destroy()
382 list_del_init(&prog->aux->offload->offloads); in bpf_prog_dev_bound_destroy()
384 netdev = prog->aux->offload->netdev; in bpf_prog_dev_bound_destroy()
401 offload = prog->aux->offload; in bpf_prog_offload_translate()
431 struct bpf_prog_aux *aux = args->prog->aux; in bpf_prog_offload_info_fill_ns() local
438 if (aux->offload) { in bpf_prog_offload_info_fill_ns()
439 args->info->ifindex = aux->offload->netdev->ifindex; in bpf_prog_offload_info_fill_ns()
440 net = dev_net(aux->offload->netdev); in bpf_prog_offload_info_fill_ns()
461 struct bpf_prog_aux *aux = prog->aux; in bpf_prog_offload_info_fill() local
477 if (!aux->offload) { in bpf_prog_offload_info_fill()
483 info->jited_prog_len = aux->offload->jited_len; in bpf_prog_offload_info_fill()
487 if (copy_to_user(uinsns, aux->offload->jited_image, ulen)) { in bpf_prog_offload_info_fill()
693 if (!bpf_prog_is_dev_bound(prog->aux)) in __bpf_offload_dev_match()
696 offload = prog->aux->offload; in __bpf_offload_dev_match()
724 if (bpf_prog_is_offloaded(lhs->aux) != bpf_prog_is_offloaded(rhs->aux)) in bpf_prog_dev_bound_match()
728 ret = lhs->aux->offload && rhs->aux->offload && in bpf_prog_dev_bound_match()
729 lhs->aux->offload->netdev && in bpf_prog_dev_bound_match()
730 lhs->aux->offload->netdev == rhs->aux->offload->netdev; in bpf_prog_dev_bound_match()
843 if (!prog->aux->offload) in bpf_dev_bound_resolve_kfunc()
846 ops = prog->aux->offload->netdev->xdp_metadata_ops; in bpf_dev_bound_resolve_kfunc()