/[linux-patches]/genpatches-2.6/trunk/2.6.14-pre/1026_3_tcp-set-default-congestion-control-correctly.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14-pre/1026_3_tcp-set-default-congestion-control-correctly.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 175 - (show annotations) (download)
Sat Oct 8 10:49:55 2005 UTC (12 years, 8 months ago) by dsd
File size: 1457 byte(s)
Creating 2.6.14-pre branch from 2.6.13
1 From stable-bounces@linux.kernel.org Tue Sep 20 13:39:52 2005
2 Date: Tue, 20 Sep 2005 13:39:47 -0700
3 From: Stephen Hemminger <shemminger@osdl.org>
4 To: "David S. Miller" <davem@davemloft.net>
5 Cc: netdev@vger.kernel.org, stable@kernel.org, Joel Sing <joel@ionix.com.au>
6 Subject: [PATCH] tcp: set default congestion control correctly for incoming connections
7
8 Patch from Joel Sing to fix the default congestion control algorithm for incoming connections. If a new congestion control handler is added (via module),
9 it should become the default for new connections. Instead, the incoming
10 connections use reno. The cause is incorrect
11 initialisation causes the tcp_init_congestion_control() function to return
12 after the initial if test fails.
13
14 Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
15 Acked-by: "David S. Miller" <davem@davemloft.net>
16 Signed-off-by: Chris Wright <chrisw@osdl.org>
17 ---
18 net/ipv4/tcp_minisocks.c | 2 +-
19 1 files changed, 1 insertion(+), 1 deletion(-)
20
21 Index: linux-2.6.13.y/net/ipv4/tcp_minisocks.c
22 ===================================================================
23 --- linux-2.6.13.y.orig/net/ipv4/tcp_minisocks.c
24 +++ linux-2.6.13.y/net/ipv4/tcp_minisocks.c
25 @@ -774,7 +774,7 @@ struct sock *tcp_create_openreq_child(st
26 newtp->frto_counter = 0;
27 newtp->frto_highmark = 0;
28
29 - newtp->ca_ops = &tcp_reno;
30 + newtp->ca_ops = &tcp_init_congestion_ops;
31
32 tcp_set_ca_state(newtp, TCP_CA_Open);
33 tcp_init_xmit_timers(newsk);

  ViewVC Help
Powered by ViewVC 1.1.20