Lines Matching refs:bpf_obj
58 struct xdp_hw_metadata *bpf_obj; variable
436 ret, errno, bpf_obj->bss->pkts_skip, in verify_metadata()
437 bpf_obj->bss->pkts_fail, bpf_obj->bss->pkts_redir); in verify_metadata()
569 if (bpf_obj) { in cleanup()
570 opts.old_prog_fd = bpf_program__fd(bpf_obj->progs.rx); in cleanup()
582 if (bpf_obj) in cleanup()
583 xdp_hw_metadata__destroy(bpf_obj); in cleanup()
690 bpf_obj = xdp_hw_metadata__open(); in main()
691 if (libbpf_get_error(bpf_obj)) in main()
692 error(1, libbpf_get_error(bpf_obj), "xdp_hw_metadata__open"); in main()
694 prog = bpf_object__find_program_by_name(bpf_obj->obj, "rx"); in main()
699 ret = xdp_hw_metadata__load(bpf_obj); in main()
717 ret = bpf_map_update_elem(bpf_map__fd(bpf_obj->maps.xsk), &queue_id, &sock_fd, 0); in main()
724 bpf_program__fd(bpf_obj->progs.rx), in main()