Searched refs:rcv_fd (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/net/ |
H A D | reuseport_bpf_cpu.c | 34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) in build_rcv_group() argument 60 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group() 61 if (rcv_fd[i] < 0) in build_rcv_group() 65 if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_group() 69 if (bind(rcv_fd[i], (struct sockaddr *)&addr, sizeof(addr))) in build_rcv_group() 72 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group() 151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) in receive_on_cpu() argument 175 if (ev.data.fd == rcv_fd[i]) in receive_on_cpu() 184 static void test(int *rcv_fd, int len, int family, int proto) in test() argument 189 build_rcv_group(rcv_fd, len, family, proto); in test() [all …]
|
H A D | reuseport_bpf_numa.c | 30 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) in build_rcv_group() argument 56 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group() 57 if (rcv_fd[i] < 0) in build_rcv_group() 61 if (setsockopt(rcv_fd[i], SOL_SOCKET, SO_REUSEPORT, &opt, in build_rcv_group() 65 if (bind(rcv_fd[i], (struct sockaddr *)&addr, sizeof(addr))) in build_rcv_group() 68 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group() 161 void receive_on_node(int *rcv_fd, int len, int epfd, int node_id, int proto) in receive_on_node() argument 185 if (ev.data.fd == rcv_fd[i]) in receive_on_node() 194 static void test(int *rcv_fd, int len, int family, int proto) in test() argument 199 build_rcv_group(rcv_fd, len, family, proto); in test() [all …]
|