Lines Matching refs:bpf_fd
99 int bpf_fd; in attach_ebpf() local
122 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_ebpf()
123 if (bpf_fd < 0) in attach_ebpf()
126 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf()
127 sizeof(bpf_fd))) in attach_ebpf()
130 close(bpf_fd); in attach_ebpf()
351 int fd, bpf_fd; in test_filter_no_reuseport() local
367 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &eprog, sizeof(eprog)); in test_filter_no_reuseport()
368 if (bpf_fd < 0) in test_filter_no_reuseport()
378 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport()
379 sizeof(bpf_fd)) || errno != EINVAL) in test_filter_no_reuseport()