Lines Matching refs:prog_fd
277 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_attach() argument
290 err = __bpf_set_link_xdp_fd_replace(ifindex, prog_fd, old_prog_fd, flags); in bpf_xdp_attach()
614 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local
630 prog_fd = OPTS_GET(opts, prog_fd, 0); in bpf_tc_attach()
634 if (ifindex <= 0 || !prog_fd || prog_id) in bpf_tc_attach()
665 ret = tc_add_fd_and_name(&req, prog_fd); in bpf_tc_attach()
689 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local
703 prog_fd = OPTS_GET(opts, prog_fd, 0); in __bpf_tc_detach()
707 if (ifindex <= 0 || flags || prog_fd || prog_id) in __bpf_tc_detach()
760 int ret, ifindex, attach_point, prog_fd; in bpf_tc_query() local
775 prog_fd = OPTS_GET(opts, prog_fd, 0); in bpf_tc_query()
779 if (ifindex <= 0 || flags || prog_fd || prog_id || in bpf_tc_query()