mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
tcp: remove max_qlen_log
This control variable was set at first listen(fd, backlog) call, but not updated if application tried to increase or decrease backlog. It made sense at the time listener had a non resizeable hash table. Also rounding to powers of two was not very friendly. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
10cbc8f179
commit
ef547f2ac1
4 changed files with 6 additions and 18 deletions
|
@ -37,13 +37,8 @@
|
|||
int sysctl_max_syn_backlog = 256;
|
||||
EXPORT_SYMBOL(sysctl_max_syn_backlog);
|
||||
|
||||
void reqsk_queue_alloc(struct request_sock_queue *queue,
|
||||
unsigned int nr_table_entries)
|
||||
void reqsk_queue_alloc(struct request_sock_queue *queue)
|
||||
{
|
||||
nr_table_entries = min_t(u32, nr_table_entries, sysctl_max_syn_backlog);
|
||||
nr_table_entries = max_t(u32, nr_table_entries, 8);
|
||||
nr_table_entries = roundup_pow_of_two(nr_table_entries + 1);
|
||||
|
||||
spin_lock_init(&queue->rskq_lock);
|
||||
|
||||
spin_lock_init(&queue->fastopenq.lock);
|
||||
|
@ -53,7 +48,6 @@ void reqsk_queue_alloc(struct request_sock_queue *queue,
|
|||
queue->fastopenq.max_qlen = 0;
|
||||
|
||||
queue->rskq_accept_head = NULL;
|
||||
queue->max_qlen_log = ilog2(nr_table_entries);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue