Home
last modified time | relevance | path

Searched refs:num_socks (Results 1 – 3 of 3) sorted by relevance

/OK3568_Linux_fs/kernel/net/core/
H A Dsock_reuseport.c92 reuse->num_socks = 1; in reuseport_alloc()
116 more_reuse->num_socks = reuse->num_socks; in reuseport_grow()
123 reuse->num_socks * sizeof(struct sock *)); in reuseport_grow()
126 for (i = 0; i < reuse->num_socks; ++i) in reuseport_grow()
172 if (old_reuse && old_reuse->num_socks != 1) { in reuseport_add_sock()
177 if (reuse->num_socks == reuse->max_socks) { in reuseport_add_sock()
185 reuse->socks[reuse->num_socks] = sk; in reuseport_add_sock()
188 reuse->num_socks++; in reuseport_add_sock()
220 for (i = 0; i < reuse->num_socks; i++) { in reuseport_detach_sock()
222 reuse->socks[i] = reuse->socks[reuse->num_socks - 1]; in reuseport_detach_sock()
[all …]
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dxdpsock_user.c154 static int num_socks; variable
221 for (i = 0; i < num_socks && xsks[i]; i++) { in dump_app_stats()
329 for (i = 0; i < num_socks && xsks[i]; i++) { in dump_driver_stats()
358 for (i = 0; i < num_socks && xsks[i]; i++) { in dump_stats()
487 for (i = 0; i < num_socks; i++) in xdpsock_cleanup()
1137 ret = poll(fds, num_socks, opt_timeout); in complete_tx_l2fwd()
1185 ret = poll(fds, num_socks, opt_timeout); in rx_drop()
1196 ret = poll(fds, num_socks, opt_timeout); in rx_drop()
1223 for (i = 0; i < num_socks; i++) { in rx_drop_all()
1230 for (i = 0; i < num_socks; i++) in rx_drop_all()
[all …]
/OK3568_Linux_fs/kernel/include/net/
H A Dsock_reuseport.h17 u16 num_socks; /* elements in socks */ member