rcv_fd             34 tools/testing/selftests/net/reuseport_bpf_cpu.c static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto)
rcv_fd             60 tools/testing/selftests/net/reuseport_bpf_cpu.c 		rcv_fd[i] = socket(family, proto, 0);
rcv_fd             61 tools/testing/selftests/net/reuseport_bpf_cpu.c 		if (rcv_fd[i] < 0)
rcv_fd             65 tools/testing/selftests/net/reuseport_bpf_cpu.c 		if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt,
rcv_fd             69 tools/testing/selftests/net/reuseport_bpf_cpu.c 		if (bind(rcv_fd[i], (struct sockaddr *)&addr, sizeof(addr)))
rcv_fd             72 tools/testing/selftests/net/reuseport_bpf_cpu.c 		if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10))
rcv_fd            151 tools/testing/selftests/net/reuseport_bpf_cpu.c void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto)
rcv_fd            175 tools/testing/selftests/net/reuseport_bpf_cpu.c 		if (ev.data.fd == rcv_fd[i])
rcv_fd            184 tools/testing/selftests/net/reuseport_bpf_cpu.c static void test(int *rcv_fd, int len, int family, int proto)
rcv_fd            189 tools/testing/selftests/net/reuseport_bpf_cpu.c 	build_rcv_group(rcv_fd, len, family, proto);
rcv_fd            190 tools/testing/selftests/net/reuseport_bpf_cpu.c 	attach_bpf(rcv_fd[0]);
rcv_fd            197 tools/testing/selftests/net/reuseport_bpf_cpu.c 		ev.data.fd = rcv_fd[cpu];
rcv_fd            198 tools/testing/selftests/net/reuseport_bpf_cpu.c 		if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev))
rcv_fd            205 tools/testing/selftests/net/reuseport_bpf_cpu.c 		receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
rcv_fd            211 tools/testing/selftests/net/reuseport_bpf_cpu.c 		receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
rcv_fd            217 tools/testing/selftests/net/reuseport_bpf_cpu.c 		receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
rcv_fd            223 tools/testing/selftests/net/reuseport_bpf_cpu.c 		receive_on_cpu(rcv_fd, len, epfd, cpu, proto);
rcv_fd            228 tools/testing/selftests/net/reuseport_bpf_cpu.c 		close(rcv_fd[cpu]);
rcv_fd            233 tools/testing/selftests/net/reuseport_bpf_cpu.c 	int *rcv_fd, cpus;
rcv_fd            239 tools/testing/selftests/net/reuseport_bpf_cpu.c 	rcv_fd = calloc(cpus, sizeof(int));
rcv_fd            240 tools/testing/selftests/net/reuseport_bpf_cpu.c 	if (!rcv_fd)
rcv_fd            244 tools/testing/selftests/net/reuseport_bpf_cpu.c 	test(rcv_fd, cpus, AF_INET, SOCK_DGRAM);
rcv_fd            247 tools/testing/selftests/net/reuseport_bpf_cpu.c 	test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM);
rcv_fd            250 tools/testing/selftests/net/reuseport_bpf_cpu.c 	test(rcv_fd, cpus, AF_INET, SOCK_STREAM);
rcv_fd            253 tools/testing/selftests/net/reuseport_bpf_cpu.c 	test(rcv_fd, cpus, AF_INET6, SOCK_STREAM);
rcv_fd            255 tools/testing/selftests/net/reuseport_bpf_cpu.c 	free(rcv_fd);
rcv_fd             30 tools/testing/selftests/net/reuseport_bpf_numa.c static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto)
rcv_fd             56 tools/testing/selftests/net/reuseport_bpf_numa.c 		rcv_fd[i] = socket(family, proto, 0);
rcv_fd             57 tools/testing/selftests/net/reuseport_bpf_numa.c 		if (rcv_fd[i] < 0)
rcv_fd             61 tools/testing/selftests/net/reuseport_bpf_numa.c 		if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt,
rcv_fd             65 tools/testing/selftests/net/reuseport_bpf_numa.c 		if (bind(rcv_fd[i], (struct sockaddr *)&addr, sizeof(addr)))
rcv_fd             68 tools/testing/selftests/net/reuseport_bpf_numa.c 		if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10))
rcv_fd            161 tools/testing/selftests/net/reuseport_bpf_numa.c void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto)
rcv_fd            185 tools/testing/selftests/net/reuseport_bpf_numa.c 		if (ev.data.fd == rcv_fd[i])
rcv_fd            194 tools/testing/selftests/net/reuseport_bpf_numa.c static void test(int *rcv_fd, int len, int family, int proto)
rcv_fd            199 tools/testing/selftests/net/reuseport_bpf_numa.c 	build_rcv_group(rcv_fd, len, family, proto);
rcv_fd            200 tools/testing/selftests/net/reuseport_bpf_numa.c 	attach_bpf(rcv_fd[0]);
rcv_fd            207 tools/testing/selftests/net/reuseport_bpf_numa.c 		ev.data.fd = rcv_fd[node];
rcv_fd            208 tools/testing/selftests/net/reuseport_bpf_numa.c 		if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[node], &ev))
rcv_fd            215 tools/testing/selftests/net/reuseport_bpf_numa.c 		receive_on_node(rcv_fd, len, epfd, node, proto);
rcv_fd            221 tools/testing/selftests/net/reuseport_bpf_numa.c 		receive_on_node(rcv_fd, len, epfd, node, proto);
rcv_fd            226 tools/testing/selftests/net/reuseport_bpf_numa.c 		close(rcv_fd[node]);
rcv_fd            231 tools/testing/selftests/net/reuseport_bpf_numa.c 	int *rcv_fd, nodes;
rcv_fd            238 tools/testing/selftests/net/reuseport_bpf_numa.c 	rcv_fd = calloc(nodes, sizeof(int));
rcv_fd            239 tools/testing/selftests/net/reuseport_bpf_numa.c 	if (!rcv_fd)
rcv_fd            243 tools/testing/selftests/net/reuseport_bpf_numa.c 	test(rcv_fd, nodes, AF_INET, SOCK_DGRAM);
rcv_fd            246 tools/testing/selftests/net/reuseport_bpf_numa.c 	test(rcv_fd, nodes, AF_INET6, SOCK_DGRAM);
rcv_fd            249 tools/testing/selftests/net/reuseport_bpf_numa.c 	test(rcv_fd, nodes, AF_INET, SOCK_STREAM);
rcv_fd            252 tools/testing/selftests/net/reuseport_bpf_numa.c 	test(rcv_fd, nodes, AF_INET6, SOCK_STREAM);
rcv_fd            254 tools/testing/selftests/net/reuseport_bpf_numa.c 	free(rcv_fd);