From: Alexey Kodanev <alexey.kodanev@oracle.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: David Miller <davem@davemloft.net>,
netdev@vger.kernel.org,
Vasily Isaenko <vasily.isaenko@oracle.com>,
Neal Cardwell <ncardwell@google.com>,
Yuchung Cheng <ycheng@google.com>,
Eric Dumazet <edumazet@google.com>
Subject: Re: resend: tcp: performance issue with fastopen connections (mss > window)
Date: Wed, 18 Jan 2017 20:32:51 +0300 [thread overview]
Message-ID: <3dbbcda8-ce79-641c-cf3b-21f41c563939@oracle.com> (raw)
In-Reply-To: <22b07900-2151-a31f-34aa-7fb47c958423@oracle.com>
Hi Eric,
On 01/13/2017 08:07 PM, Alexey Kodanev wrote:
> Hi Eric,
> On 13.01.2017 18:35, Eric Dumazet wrote:
>
>> I would suggest to clamp MSS to half the initial window, but I guess
>> this is impractical since window in SYN/SYNACK are not scaled.
Looks like max_window not correctly initialized for tfo sockets.
On my test machine it has set to '5592320' in tcp_fastopen_create_child().
This diff fixes the issue, the question: is this the right place to do it?
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c
index 4e777a3..33ed508 100644
--- a/net/ipv4/tcp_fastopen.c
+++ b/net/ipv4/tcp_fastopen.c
@@ -206,6 +206,8 @@ static struct sock *tcp_fastopen_create_child(struct
sock *sk,
*/
tp->snd_wnd = ntohs(tcp_hdr(skb)->window);
+ tp->max_window = tp->snd_wnd;
+
/* Activate the retrans timer so that SYNACK can be retransmitted.
* The request socket is not added to the ehash
* because it's been added to the accept queue directly.
Thanks,
Alexey
next prev parent reply other threads:[~2017-01-18 17:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-13 15:01 resend: tcp: performance issue with fastopen connections (mss > window) Alexey Kodanev
2017-01-13 15:35 ` Eric Dumazet
2017-01-13 17:07 ` Alexey Kodanev
2017-01-13 17:14 ` Eric Dumazet
2017-01-13 17:32 ` Neal Cardwell
2017-01-13 17:41 ` Eric Dumazet
2017-01-18 17:32 ` Alexey Kodanev [this message]
2017-01-18 17:35 ` Eric Dumazet
2017-01-18 18:13 ` Yuchung Cheng
2017-01-18 18:16 ` Eric Dumazet
2017-01-18 18:27 ` Yuchung Cheng
2017-01-18 18:42 ` Neal Cardwell
2017-01-18 18:33 ` Neal Cardwell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3dbbcda8-ce79-641c-cf3b-21f41c563939@oracle.com \
--to=alexey.kodanev@oracle.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=vasily.isaenko@oracle.com \
--cc=ycheng@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox