Lines Matching refs:bpf_fd
97 int bpf_fd; in attach_ebpf() local
120 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &attr, sizeof(attr)); in attach_ebpf()
121 if (bpf_fd < 0) in attach_ebpf()
124 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in attach_ebpf()
125 sizeof(bpf_fd))) in attach_ebpf()
128 close(bpf_fd); in attach_ebpf()
349 int fd, bpf_fd; in test_filter_no_reuseport() local
365 bpf_fd = syscall(__NR_bpf, BPF_PROG_LOAD, &eprog, sizeof(eprog)); in test_filter_no_reuseport()
366 if (bpf_fd < 0) in test_filter_no_reuseport()
376 if (!setsockopt(fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, &bpf_fd, in test_filter_no_reuseport()
377 sizeof(bpf_fd)) || errno != EINVAL) in test_filter_no_reuseport()