Lines Matching defs:progfd
637 static int do_attach_detach_xdp(int progfd, enum net_attach_type attach_type,
651 return bpf_xdp_attach(ifindex, progfd, flags, NULL);
666 static int do_attach_tcx(int progfd, enum net_attach_type attach_type, int ifindex)
670 return bpf_prog_attach(progfd, ifindex, type, 0);
683 int progfd, ifindex, err = 0;
697 progfd = prog_parse_fd(&argc, &argv);
698 if (progfd < 0)
723 err = do_attach_detach_xdp(progfd, attach_type, ifindex, overwrite);
728 err = do_attach_tcx(progfd, attach_type, ifindex);
743 close(progfd);
750 int progfd, ifindex, err = 0;
773 progfd = -1;
774 err = do_attach_detach_xdp(progfd, attach_type, ifindex, NULL);