From: Marc-Christian Petersen <m.c.p@wolk-project.de>
To: linux-kernel@vger.kernel.org
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>
Subject: [PATCH 2.4] IP: disable ECN support by default - Config option
Date: Tue, 10 Dec 2002 03:18:21 +0100 [thread overview]
Message-ID: <200212100316.59910.m.c.p@wolk-project.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 243 bytes --]
Hi Marcelo,
attached super trivial patch gives us a config option to choose whether we
want ECN disabled per default if selected or not.
consider for inclusion into 2.4.
Has been in WOLK and in Debian kernels for ages.
ciao, Marc
[-- Attachment #2: ecn-disable-per-default-config-option.patch --]
[-- Type: text/x-diff, Size: 847 bytes --]
--- linux-old/net/ipv4/Config.in
+++ linux-wolk/net/ipv4/Config.in
@@ -40,6 +40,9 @@
bool ' IP: ARP daemon support (EXPERIMENTAL)' CONFIG_ARPD
fi
bool ' IP: TCP Explicit Congestion Notification support' CONFIG_INET_ECN
+if [ "$CONFIG_INET_ECN" = "y" ]; then
+ bool ' IP: disable ECN support by default' CONFIG_INET_ECN_DISABLED
+fi
bool ' IP: TCP syncookie support (disabled per default)' CONFIG_SYN_COOKIES
if [ "$CONFIG_NETFILTER" != "n" ]; then
source net/ipv4/netfilter/Config.in
--- linux-old/net/ipv4/tcp_input.c
+++ linux-wolk/net/ipv4/tcp_input.c
@@ -74,7 +74,7 @@
int sysctl_tcp_sack = 1;
int sysctl_tcp_fack = 1;
int sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH;
-#ifdef CONFIG_INET_ECN
+#if defined(CONFIG_INET_ECN) && !defined(CONFIG_INET_ECN_DISABLED)
int sysctl_tcp_ecn = 1;
#else
int sysctl_tcp_ecn = 0;
next reply other threads:[~2002-12-10 2:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-10 2:18 Marc-Christian Petersen [this message]
2002-12-10 2:53 ` [PATCH 2.4] IP: disable ECN support by default - Config option Krzysztof Halasa
2002-12-10 3:28 ` David S. Miller
2002-12-10 3:14 ` Marc-Christian Petersen
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=200212100316.59910.m.c.p@wolk-project.de \
--to=m.c.p@wolk-project.de \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
/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