tcp: restore fastopen operations
authorEric Dumazet <edumazet@google.com>
Wed, 30 Sep 2015 13:18:23 +0000 (06:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 10:19:06 +0000 (03:19 -0700)
I accidentally cleared fastopenq.max_qlen in reqsk_queue_alloc()
while max_qlen can be set before listen() is called,
using TCP_FASTOPEN socket option for example.

Fixes: 0536fcc039a8 ("tcp: prepare fastopen code for upcoming listener changes")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/request_sock.c

index 15c853806518f670cd9c3e2cd2566f21922d4909..5d26056b6d8f01f4db815423d2d78f6f7d25d55f 100644 (file)
@@ -45,7 +45,6 @@ void reqsk_queue_alloc(struct request_sock_queue *queue)
        queue->fastopenq.rskq_rst_head = NULL;
        queue->fastopenq.rskq_rst_tail = NULL;
        queue->fastopenq.qlen = 0;
-       queue->fastopenq.max_qlen = 0;
 
        queue->rskq_accept_head = NULL;
 }