public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.4] IP: disable ECN support by default - Config option
@ 2002-12-10  2:18 Marc-Christian Petersen
  2002-12-10  2:53 ` Krzysztof Halasa
  2002-12-10  3:28 ` David S. Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Marc-Christian Petersen @ 2002-12-10  2:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: Marcelo Tosatti

[-- 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;

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2.4] IP: disable ECN support by default - Config option
  2002-12-10  2:18 [PATCH 2.4] IP: disable ECN support by default - Config option Marc-Christian Petersen
@ 2002-12-10  2:53 ` Krzysztof Halasa
  2002-12-10  3:28 ` David S. Miller
  1 sibling, 0 replies; 4+ messages in thread
From: Krzysztof Halasa @ 2002-12-10  2:53 UTC (permalink / raw)
  To: linux-kernel

Marc-Christian Petersen <m.c.p@wolk-project.de> writes:

> attached super trivial patch gives us a config option to choose whether we 
> want ECN disabled per default if selected or not.

Why do we need that if we can enable/disable ECN at runtime?
-- 
Krzysztof Halasa
Network Administrator

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2.4] IP: disable ECN support by default - Config option
  2002-12-10  3:28 ` David S. Miller
@ 2002-12-10  3:14   ` Marc-Christian Petersen
  0 siblings, 0 replies; 4+ messages in thread
From: Marc-Christian Petersen @ 2002-12-10  3:14 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel, Marcelo Tosatti

On Tuesday 10 December 2002 04:28, David S. Miller wrote:

Hi David,

> CONFIG_INET_ECN does exactly what you want.
>
> If you turn it on, ECN is on by default.
> If you turn it off, ECN is off by default.

args, you are right. Sorry, my mistake! Maybe I need some sleep, looking twice 
it is sooo obvious :)

ciao, Marc

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2.4] IP: disable ECN support by default - Config option
  2002-12-10  2:18 [PATCH 2.4] IP: disable ECN support by default - Config option Marc-Christian Petersen
  2002-12-10  2:53 ` Krzysztof Halasa
@ 2002-12-10  3:28 ` David S. Miller
  2002-12-10  3:14   ` Marc-Christian Petersen
  1 sibling, 1 reply; 4+ messages in thread
From: David S. Miller @ 2002-12-10  3:28 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: linux-kernel, Marcelo Tosatti


CONFIG_INET_ECN does exactly what you want.

If you turn it on, ECN is on by default.
If you turn it off, ECN is off by default.

The ECN support itself, is always compiled into the
kernel.  CONFIG_INET_ECN only determines the initial
setting of the ecn sysctl.

Your patch adds zero functionality and only serves to make
the cofiguration more complicated.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-10 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-10  2:18 [PATCH 2.4] IP: disable ECN support by default - Config option Marc-Christian Petersen
2002-12-10  2:53 ` Krzysztof Halasa
2002-12-10  3:28 ` David S. Miller
2002-12-10  3:14   ` Marc-Christian Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox