aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/request_sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/request_sock.h')
-rw-r--r--include/net/request_sock.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/net/request_sock.h b/include/net/request_sock.h
index 38943ed04e73..72fd6f5e86b1 100644
--- a/include/net/request_sock.h
+++ b/include/net/request_sock.h
@@ -78,11 +78,11 @@ static inline void reqsk_free(struct request_sock *req)
78 78
79extern int sysctl_max_syn_backlog; 79extern int sysctl_max_syn_backlog;
80 80
81/** struct tcp_listen_opt - listen state 81/** struct listen_sock - listen state
82 * 82 *
83 * @max_qlen_log - log_2 of maximal queued SYNs/REQUESTs 83 * @max_qlen_log - log_2 of maximal queued SYNs/REQUESTs
84 */ 84 */
85struct tcp_listen_opt { 85struct listen_sock {
86 u8 max_qlen_log; 86 u8 max_qlen_log;
87 /* 3 bytes hole, try to use */ 87 /* 3 bytes hole, try to use */
88 int qlen; 88 int qlen;
@@ -111,15 +111,15 @@ struct request_sock_queue {
111 struct request_sock *rskq_accept_head; 111 struct request_sock *rskq_accept_head;
112 struct request_sock *rskq_accept_tail; 112 struct request_sock *rskq_accept_tail;
113 rwlock_t syn_wait_lock; 113 rwlock_t syn_wait_lock;
114 struct tcp_listen_opt *listen_opt; 114 struct listen_sock *listen_opt;
115}; 115};
116 116
117extern int reqsk_queue_alloc(struct request_sock_queue *queue, 117extern int reqsk_queue_alloc(struct request_sock_queue *queue,
118 const int nr_table_entries); 118 const int nr_table_entries);
119 119
120static inline struct tcp_listen_opt *reqsk_queue_yank_listen_sk(struct request_sock_queue *queue) 120static inline struct listen_sock *reqsk_queue_yank_listen_sk(struct request_sock_queue *queue)
121{ 121{
122 struct tcp_listen_opt *lopt; 122 struct listen_sock *lopt;
123 123
124 write_lock_bh(&queue->syn_wait_lock); 124 write_lock_bh(&queue->syn_wait_lock);
125 lopt = queue->listen_opt; 125 lopt = queue->listen_opt;
@@ -203,7 +203,7 @@ static inline struct sock *reqsk_queue_get_child(struct request_sock_queue *queu
203static inline int reqsk_queue_removed(struct request_sock_queue *queue, 203static inline int reqsk_queue_removed(struct request_sock_queue *queue,
204 struct request_sock *req) 204 struct request_sock *req)
205{ 205{
206 struct tcp_listen_opt *lopt = queue->listen_opt; 206 struct listen_sock *lopt = queue->listen_opt;
207 207
208 if (req->retrans == 0) 208 if (req->retrans == 0)
209 --lopt->qlen_young; 209 --lopt->qlen_young;
@@ -213,7 +213,7 @@ static inline int reqsk_queue_removed(struct request_sock_queue *queue,
213 213
214static inline int reqsk_queue_added(struct request_sock_queue *queue) 214static inline int reqsk_queue_added(struct request_sock_queue *queue)
215{ 215{
216 struct tcp_listen_opt *lopt = queue->listen_opt; 216 struct listen_sock *lopt = queue->listen_opt;
217 const int prev_qlen = lopt->qlen; 217 const int prev_qlen = lopt->qlen;
218 218
219 lopt->qlen_young++; 219 lopt->qlen_young++;
@@ -240,7 +240,7 @@ static inline void reqsk_queue_hash_req(struct request_sock_queue *queue,
240 u32 hash, struct request_sock *req, 240 u32 hash, struct request_sock *req,
241 unsigned timeout) 241 unsigned timeout)
242{ 242{
243 struct tcp_listen_opt *lopt = queue->listen_opt; 243 struct listen_sock *lopt = queue->listen_opt;
244 244
245 req->expires = jiffies + timeout; 245 req->expires = jiffies + timeout;
246 req->retrans = 0; 246 req->retrans = 0;