mirror of https://lore.kernel.org/lkml/
 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

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

Powered by JetHome