[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6920caee-c422-52a6-3787-36b56e9f5120@gmail.com>
Date: Fri, 10 Jul 2020 12:32:04 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Kuniyuki Iwashima <kuniyu@...zon.co.jp>,
"David S . Miller" <davem@...emloft.net>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>
Cc: netdev@...r.kernel.org, Kuniyuki Iwashima <kuni1840@...il.com>,
Benjamin Herrenschmidt <benh@...zon.com>,
osa-contribution-log@...zon.com, Julian Anastasov <ja@....bg>
Subject: Re: [PATCH v4 net-next] inet: Remove an unnecessary argument of
syn_ack_recalc().
On 7/10/20 8:57 AM, Kuniyuki Iwashima wrote:
> Commit 0c3d79bce48034018e840468ac5a642894a521a3 ("tcp: reduce SYN-ACK
> retrans for TCP_DEFER_ACCEPT") introduces syn_ack_recalc() which decides
> if a minisock is held and a SYN+ACK is retransmitted or not.
>
> If rskq_defer_accept is not zero in syn_ack_recalc(), max_retries always
> has the same value because max_retries is overwritten by rskq_defer_accept
> in reqsk_timer_handler().
>
> This commit adds three changes:
> - remove redundant non-zero check for rskq_defer_accept in
> reqsk_timer_handler().
> - remove max_retries from the arguments of syn_ack_recalc() and use
> rskq_defer_accept instead.
> - rename thresh to max_syn_ack_retries for readability.
>
> Signed-off-by: Kuniyuki Iwashima <kuniyu@...zon.co.jp>
> Reviewed-by: Benjamin Herrenschmidt <benh@...zon.com>
> CC: Julian Anastasov <ja@....bg>
Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Thanks.
Powered by blists - more mailing lists