Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet tcp sockbuf autoscaling was initially added turn...



details:   https://anonhg.NetBSD.org/src/rev/ef286fd7613b
branches:  trunk
changeset: 751166:ef286fd7613b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jan 26 18:09:07 2010 +0000

description:
tcp sockbuf autoscaling was initially added turned off because it
was experimental.  People (including myself) have been running with
it turned on for eons now, so flip the default to enabled.

diffstat:

 sys/netinet/tcp_input.c  |  6 +++---
 sys/netinet/tcp_output.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 57767feb2cdd -r ef286fd7613b sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Tue Jan 26 18:08:24 2010 +0000
+++ b/sys/netinet/tcp_input.c   Tue Jan 26 18:09:07 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_input.c,v 1.299 2009/09/09 22:41:28 darran Exp $   */
+/*     $NetBSD: tcp_input.c,v 1.300 2010/01/26 18:09:07 pooka Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -145,7 +145,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.299 2009/09/09 22:41:28 darran Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.300 2010/01/26 18:09:07 pooka Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -239,7 +239,7 @@
 int    tcprexmtthresh = 3;
 int    tcp_log_refused;
 
-int    tcp_do_autorcvbuf = 0;
+int    tcp_do_autorcvbuf = 1;
 int    tcp_autorcvbuf_inc = 16 * 1024;
 int    tcp_autorcvbuf_max = 256 * 1024;
 int    tcp_msl = (TCPTV_MSL / PR_SLOWHZ);
diff -r 57767feb2cdd -r ef286fd7613b sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c  Tue Jan 26 18:08:24 2010 +0000
+++ b/sys/netinet/tcp_output.c  Tue Jan 26 18:09:07 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_output.c,v 1.168 2009/03/18 16:00:22 cegger Exp $  */
+/*     $NetBSD: tcp_output.c,v 1.169 2010/01/26 18:09:08 pooka Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -135,7 +135,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.168 2009/03/18 16:00:22 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.169 2010/01/26 18:09:08 pooka Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -215,7 +215,7 @@
 int    tcp_cwm = 0;
 int    tcp_cwm_burstsize = 4;
 
-int    tcp_do_autosndbuf = 0;
+int    tcp_do_autosndbuf = 1;
 int    tcp_autosndbuf_inc = 8 * 1024;
 int    tcp_autosndbuf_max = 256 * 1024;
 



Home | Main Index | Thread Index | Old Index