netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default
@ 2013-10-31 16:19 Yuchung Cheng
  2013-10-31 23:19 ` Eric Dumazet
  2013-11-05  0:58 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Yuchung Cheng @ 2013-10-31 16:19 UTC (permalink / raw)
  To: davem, edumazet; +Cc: netdev, ncardwell, sivasankar, Yuchung Cheng

Applications have started to use Fast Open (e.g., Chrome browser has
such an optional flag) and the feature has gone through several
generations of kernels since 3.7 with many real network tests. It's
time to enable this flag by default for applications to test more
conveniently and extensively.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
---
 Documentation/networking/ip-sysctl.txt | 4 ++--
 net/ipv4/tcp_fastopen.c                | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/networking/ip-sysctl.txt b/Documentation/networking/ip-sysctl.txt
index a46d785..6c00983 100644
--- a/Documentation/networking/ip-sysctl.txt
+++ b/Documentation/networking/ip-sysctl.txt
@@ -451,7 +451,7 @@ tcp_fastopen - INTEGER
 	connect() to perform a TCP handshake automatically.
 
 	The values (bitmap) are
-	1: Enables sending data in the opening SYN on the client.
+	1: Enables sending data in the opening SYN on the client w/ MSG_FASTOPEN.
 	2: Enables TCP Fast Open on the server side, i.e., allowing data in
 	   a SYN packet to be accepted and passed to the application before
 	   3-way hand shake finishes.
@@ -464,7 +464,7 @@ tcp_fastopen - INTEGER
 	   different ways of setting max_qlen without the TCP_FASTOPEN socket
 	   option.
 
-	Default: 0
+	Default: 1
 
 	Note that the client & server side Fast Open flags (1 and 2
 	respectively) must be also enabled before the rest of flags can take
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c
index 766032b..f195d93 100644
--- a/net/ipv4/tcp_fastopen.c
+++ b/net/ipv4/tcp_fastopen.c
@@ -8,7 +8,7 @@
 #include <net/inetpeer.h>
 #include <net/tcp.h>
 
-int sysctl_tcp_fastopen __read_mostly;
+int sysctl_tcp_fastopen __read_mostly = TFO_CLIENT_ENABLE;
 
 struct tcp_fastopen_context __rcu *tcp_fastopen_ctx;
 
-- 
1.8.4.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default
  2013-10-31 16:19 [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default Yuchung Cheng
@ 2013-10-31 23:19 ` Eric Dumazet
  2013-11-01 15:29   ` Rick Jones
  2013-11-05  0:58 ` David Miller
  1 sibling, 1 reply; 5+ messages in thread
From: Eric Dumazet @ 2013-10-31 23:19 UTC (permalink / raw)
  To: Yuchung Cheng; +Cc: davem, edumazet, netdev, ncardwell, sivasankar

On Thu, 2013-10-31 at 09:19 -0700, Yuchung Cheng wrote:
> Applications have started to use Fast Open (e.g., Chrome browser has
> such an optional flag) and the feature has gone through several
> generations of kernels since 3.7 with many real network tests. It's
> time to enable this flag by default for applications to test more
> conveniently and extensively.
> 
> Signed-off-by: Yuchung Cheng <ycheng@google.com>
> Signed-off-by: Neal Cardwell <ncardwell@google.com>
> ---

Acked-by: Eric Dumazet <edumazet@google.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default
  2013-10-31 23:19 ` Eric Dumazet
@ 2013-11-01 15:29   ` Rick Jones
  2013-11-01 16:09     ` Yuchung Cheng
  0 siblings, 1 reply; 5+ messages in thread
From: Rick Jones @ 2013-11-01 15:29 UTC (permalink / raw)
  To: Eric Dumazet, Yuchung Cheng
  Cc: davem, edumazet, netdev, ncardwell, sivasankar

On 10/31/2013 04:19 PM, Eric Dumazet wrote:
> On Thu, 2013-10-31 at 09:19 -0700, Yuchung Cheng wrote:
>> Applications have started to use Fast Open (e.g., Chrome browser has
>> such an optional flag) and the feature has gone through several
>> generations of kernels since 3.7 with many real network tests. It's
>> time to enable this flag by default for applications to test more
>> conveniently and extensively.
>>
>> Signed-off-by: Yuchung Cheng <ycheng@google.com>
>> Signed-off-by: Neal Cardwell <ncardwell@google.com>
>> ---
>
> Acked-by: Eric Dumazet <edumazet@google.com>

Which TCP/IP stacks besides Linux have Fast Open at this point and for 
how long have they had it?  Basically, how prevalent are servers out 
there (both Internet and intranet) with support for Fast Open?

http://news.netcraft.com/archives/2013/11/01/november-2013-web-server-survey.html 
  doesn't go down to the OS level, and 
http://www.netcraft.com/internet-data-mining/ssl-survey/ is only from 
May and was in the context of SSL sides, but it does provide an 
interesting break-down of "OS share" which looks reasonably stable going 
back three years and so probably isn't too far off presently.

<insert the same sort of question about those firewalls and intermediate 
devices which make our lives so much fun here>

rick jones

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default
  2013-11-01 15:29   ` Rick Jones
@ 2013-11-01 16:09     ` Yuchung Cheng
  0 siblings, 0 replies; 5+ messages in thread
From: Yuchung Cheng @ 2013-11-01 16:09 UTC (permalink / raw)
  To: Rick Jones
  Cc: Eric Dumazet, David Miller, Eric Dumazet, netdev, Neal Cardwell,
	Sivasankar Radhakrishnan

On Fri, Nov 1, 2013 at 8:29 AM, Rick Jones <rick.jones2@hp.com> wrote:
> On 10/31/2013 04:19 PM, Eric Dumazet wrote:
>>
>> On Thu, 2013-10-31 at 09:19 -0700, Yuchung Cheng wrote:
>>>
>>> Applications have started to use Fast Open (e.g., Chrome browser has
>>> such an optional flag) and the feature has gone through several
>>> generations of kernels since 3.7 with many real network tests. It's
>>> time to enable this flag by default for applications to test more
>>> conveniently and extensively.
>>>
>>> Signed-off-by: Yuchung Cheng <ycheng@google.com>
>>> Signed-off-by: Neal Cardwell <ncardwell@google.com>
>>> ---
>>
>>
>> Acked-by: Eric Dumazet <edumazet@google.com>
>
>
> Which TCP/IP stacks besides Linux have Fast Open at this point and for how
> long have they had it?  Basically, how prevalent are servers out there (both
> Internet and intranet) with support for Fast Open?
google.com supports it. we are working on enabling more Android and
ChromeOS to use it.

>
> http://news.netcraft.com/archives/2013/11/01/november-2013-web-server-survey.html
> doesn't go down to the OS level, and
> http://www.netcraft.com/internet-data-mining/ssl-survey/ is only from May
> and was in the context of SSL sides, but it does provide an interesting
> break-down of "OS share" which looks reasonably stable going back three
> years and so probably isn't too far off presently.
>
> <insert the same sort of question about those firewalls and intermediate
> devices which make our lives so much fun here>
>
> rick jones
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default
  2013-10-31 16:19 [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default Yuchung Cheng
  2013-10-31 23:19 ` Eric Dumazet
@ 2013-11-05  0:58 ` David Miller
  1 sibling, 0 replies; 5+ messages in thread
From: David Miller @ 2013-11-05  0:58 UTC (permalink / raw)
  To: ycheng; +Cc: edumazet, netdev, ncardwell, sivasankar

From: Yuchung Cheng <ycheng@google.com>
Date: Thu, 31 Oct 2013 09:19:32 -0700

> Applications have started to use Fast Open (e.g., Chrome browser has
> such an optional flag) and the feature has gone through several
> generations of kernels since 3.7 with many real network tests. It's
> time to enable this flag by default for applications to test more
> conveniently and extensively.
> 
> Signed-off-by: Yuchung Cheng <ycheng@google.com>
> Signed-off-by: Neal Cardwell <ncardwell@google.com>

Applied.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-05  0:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-31 16:19 [PATCH net-next] tcp: enable sockets to use MSG_FASTOPEN by default Yuchung Cheng
2013-10-31 23:19 ` Eric Dumazet
2013-11-01 15:29   ` Rick Jones
2013-11-01 16:09     ` Yuchung Cheng
2013-11-05  0:58 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).