Searched refs:fastopenq (Results 1 - 9 of 9) sorted by relevance

/linux-4.4.14/net/core/
H A Drequest_sock.c44 spin_lock_init(&queue->fastopenq.lock); reqsk_queue_alloc()
45 queue->fastopenq.rskq_rst_head = NULL; reqsk_queue_alloc()
46 queue->fastopenq.rskq_rst_tail = NULL; reqsk_queue_alloc()
47 queue->fastopenq.qlen = 0; reqsk_queue_alloc()
71 * accepted or not, and the check is protected by the fastopenq->lock
78 * lock per listener "icsk->icsk_accept_queue.fastopenq->lock" is created.
81 * The lock also protects other fields such as fastopenq->qlen, which is
95 * fastopenq->lock in this function.
101 struct fastopen_queue *fastopenq; reqsk_fastopen_remove() local
103 fastopenq = &inet_csk(lsk)->icsk_accept_queue.fastopenq; reqsk_fastopen_remove()
106 spin_lock_bh(&fastopenq->lock); reqsk_fastopen_remove()
107 fastopenq->qlen--; reqsk_fastopen_remove()
116 spin_unlock_bh(&fastopenq->lock); reqsk_fastopen_remove()
128 if (fastopenq->rskq_rst_head == NULL) reqsk_fastopen_remove()
129 fastopenq->rskq_rst_head = req; reqsk_fastopen_remove()
131 fastopenq->rskq_rst_tail->dl_next = req; reqsk_fastopen_remove()
134 fastopenq->rskq_rst_tail = req; reqsk_fastopen_remove()
135 fastopenq->qlen++; reqsk_fastopen_remove()
137 spin_unlock_bh(&fastopenq->lock); reqsk_fastopen_remove()
/linux-4.4.14/net/ipv4/
H A Dtcp_fastopen.c147 spin_lock(&queue->fastopenq.lock); tcp_fastopen_create_child()
148 queue->fastopenq.qlen++; tcp_fastopen_create_child()
149 spin_unlock(&queue->fastopenq.lock); tcp_fastopen_create_child()
218 struct fastopen_queue *fastopenq; tcp_fastopen_queue_check() local
230 fastopenq = &inet_csk(sk)->icsk_accept_queue.fastopenq; tcp_fastopen_queue_check()
231 if (fastopenq->max_qlen == 0) tcp_fastopen_queue_check()
234 if (fastopenq->qlen >= fastopenq->max_qlen) { tcp_fastopen_queue_check()
236 spin_lock(&fastopenq->lock); tcp_fastopen_queue_check()
237 req1 = fastopenq->rskq_rst_head; tcp_fastopen_queue_check()
239 spin_unlock(&fastopenq->lock); tcp_fastopen_queue_check()
244 fastopenq->rskq_rst_head = req1->dl_next; tcp_fastopen_queue_check()
245 fastopenq->qlen--; tcp_fastopen_queue_check()
246 spin_unlock(&fastopenq->lock); tcp_fastopen_queue_check()
H A Dinet_connection_sock.c338 spin_lock_bh(&queue->fastopenq.lock); inet_csk_accept()
349 spin_unlock_bh(&queue->fastopenq.lock); inet_csk_accept()
866 if (queue->fastopenq.rskq_rst_head) { inet_csk_listen_stop()
868 spin_lock_bh(&queue->fastopenq.lock); inet_csk_listen_stop()
869 req = queue->fastopenq.rskq_rst_head; inet_csk_listen_stop()
870 queue->fastopenq.rskq_rst_head = NULL; inet_csk_listen_stop()
871 spin_unlock_bh(&queue->fastopenq.lock); inet_csk_listen_stop()
H A Dtcp_ipv4.c2163 const struct fastopen_queue *fastopenq = &icsk->icsk_accept_queue.fastopenq; get_tcp4_sock() local
2213 fastopenq->max_qlen : get_tcp4_sock()
H A Daf_inet.c217 * Also fastopenq may already been allocated because this inet_listen()
222 !inet_csk(sk)->icsk_accept_queue.fastopenq.max_qlen) { inet_listen()
H A Dtcp.c2858 val = icsk->icsk_accept_queue.fastopenq.max_qlen; do_tcp_getsockopt()
/linux-4.4.14/include/net/
H A Drequest_sock.h174 struct fastopen_queue fastopenq; /* Check max_qlen != 0 to determine member in struct:request_sock_queue
/linux-4.4.14/net/ipv6/
H A Dtcp_ipv6.c1700 const struct fastopen_queue *fastopenq = &icsk->icsk_accept_queue.fastopenq; get_tcp6_sock() local
1757 fastopenq->max_qlen : get_tcp6_sock()
/linux-4.4.14/include/linux/
H A Dtcp.h397 queue->fastopenq.max_qlen = min_t(unsigned int, backlog, somaxconn); fastopen_queue_tune()

Completed in 331 milliseconds