From: Stephen Hemminger <shemminger@osdl.org>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: [PATCH 1/5] tcp: set default congestion control when no sysctl
Date: Tue, 31 Oct 2006 15:01:41 -0800 [thread overview]
Message-ID: <20061031230213.529807216@osdl.org> (raw)
In-Reply-To: 20061031230140.191929094@osdl.org
[-- Attachment #1: tcp-default-no-sysctl.patch --]
[-- Type: text/plain, Size: 1319 bytes --]
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>
---
net/ipv4/sysctl_net_ipv4.c | 7 -------
net/ipv4/tcp_cong.c | 8 ++++++++
2 files changed, 8 insertions(+), 7 deletions(-)
--- tcp.orig/net/ipv4/sysctl_net_ipv4.c 2006-10-31 12:22:43.000000000 -0800
+++ tcp/net/ipv4/sysctl_net_ipv4.c 2006-10-31 12:22:56.000000000 -0800
@@ -129,13 +129,6 @@
return ret;
}
-static int __init tcp_congestion_default(void)
-{
- return tcp_set_default_congestion_control(CONFIG_DEFAULT_TCP_CONG);
-}
-
-late_initcall(tcp_congestion_default);
-
ctl_table ipv4_table[] = {
{
.ctl_name = NET_IPV4_TCP_TIMESTAMPS,
--- tcp.orig/net/ipv4/tcp_cong.c 2006-10-31 12:22:33.000000000 -0800
+++ tcp/net/ipv4/tcp_cong.c 2006-10-31 12:23:42.000000000 -0800
@@ -131,6 +131,14 @@
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)
{
--
Stephen Hemminger <shemminger@osdl.org>
next prev parent reply other threads:[~2006-10-31 23:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-31 23:01 [PATCH 0/5] TCP related patches Stephen Hemminger
2006-10-31 23:01 ` Stephen Hemminger [this message]
2006-11-01 1:31 ` [PATCH 1/5] tcp: set default congestion control when no sysctl David Miller
2006-10-31 23:01 ` [PATCH 2/5] tcp: add tcp_available_congestion_control sysctl Stephen Hemminger
2006-11-10 0:32 ` David Miller
2006-10-31 23:01 ` [PATCH 3/5] tcp: restrict congestion control choices Stephen Hemminger
2006-11-10 0:35 ` David Miller
2006-10-31 23:01 ` [PATCH 4/5] tcp: allow autoloading of congestion control via setsockopt Stephen Hemminger
2006-11-10 0:36 ` David Miller
2006-10-31 23:01 ` [PATCH 5/5] ip-sysctl.txt alphabetize Stephen Hemminger
2006-11-10 0:37 ` David Miller
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=20061031230213.529807216@osdl.org \
--to=shemminger@osdl.org \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).