diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-11-01 02:31:33 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-11-02 00:42:34 +0100 |
commit | b1736a71404b3961f061c795a81210aa7f945fc0 (patch) | |
tree | f7d285697c143b5f28a4389d994c72fdfa78684f /net/ipv4/tcp_cong.c | |
parent | [TIPC] net/tipc/port.c: fix NULL dereference (diff) | |
download | linux-b1736a71404b3961f061c795a81210aa7f945fc0.tar.xz linux-b1736a71404b3961f061c795a81210aa7f945fc0.zip |
[TCP]: Set default congestion control when no sysctl.
The setting of the default congestion control was buried in
the sysctl code so it would not be done properly if SYSCTL was
not enabled.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_cong.c')
-rw-r--r-- | net/ipv4/tcp_cong.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c index af0aca1e6be6..1e2982f4acd4 100644 --- a/net/ipv4/tcp_cong.c +++ b/net/ipv4/tcp_cong.c @@ -131,6 +131,14 @@ int tcp_set_default_congestion_control(const char *name) return ret; } +/* Set default value from kernel configuration at bootup */ +static int __init tcp_congestion_default(void) +{ + return tcp_set_default_congestion_control(CONFIG_DEFAULT_TCP_CONG); +} +late_initcall(tcp_congestion_default); + + /* Get current default congestion control */ void tcp_get_default_congestion_control(char *name) { |