From: Adrian Bunk <bunk@stusta.de>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: Baruch Even <baruch@ev-en.org>, Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: 2.6.12-rc5-mm2: "bic unavailable using TCP reno" messages
Date: Thu, 2 Jun 2005 22:38:23 +0200 [thread overview]
Message-ID: <20050602203823.GI4992@stusta.de> (raw)
In-Reply-To: <20050602103805.6beb4f4e@dxpl.pdx.osdl.net>
On Thu, Jun 02, 2005 at 10:38:05AM -0700, Stephen Hemminger wrote:
> On Thu, 02 Jun 2005 14:58:17 +0100
> Baruch Even <baruch@ev-en.org> wrote:
>
> >...
>
> Your right, the sysctl handler should be smarter, but that is not the problem here.
> The problem is that the default value is set to be BIC to be compatible with earlier kernels.
> Since 75% of the world isn't smart enough to figure out how to use sysctl, there is a
> question of what the default should be, and what to do if that is missing.
>
> One version had a messy ifdef chain to try and avoid the warning:
>
> char sysctl_tcp_congestion_control[] =
> #if defined(CONFIG_TCP_BIC)
> "bic"
> #elif defined(CONFIG_TCP_HTCP)
> "htcp"
> #else
> "reno"
> #endif
> ;
>
> but that was ugly.
>
> Another possibility is putting it in as yet another config value at kernel build time.
>...
One thing that currently makes all solutions harder (and the #ifdef
example above not ugly but simply wrong) is that you allow modular
congestion control options for the always static net support.
Is this really required?
The IO schedulers have a similar problem, and they are using the #ifdef
approach for selecting the default.
One approach is to actually choose the default using #ifdef's.
You could also do any kind of runtime selection, but please don't print
the warning more than once.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2005-06-02 20:40 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-01 9:28 2.6.12-rc5-mm2 Andrew Morton
2005-06-01 9:54 ` 2.6.12-rc5-mm2 Michal Schmidt
2005-06-01 12:22 ` 2.6.12-rc5-mm2 Stefano Rivoir
2005-06-01 21:53 ` 2.6.12-rc5-mm2 Dave Airlie
2005-06-01 14:02 ` 2.6.12-rc5-mm2 Pavel Machek
2005-06-01 15:04 ` 2.6.12-rc5-mm2 Matthias Urlichs
2005-06-03 10:12 ` 2.6.12-rc5-mm2 Pavel Machek
2005-06-05 19:20 ` 2.6.12-rc5-mm2 Matthias Urlichs
2005-06-01 16:48 ` 2.6.12-rc5-mm2 William Lee Irwin III
2005-06-01 23:47 ` 2.6.12-rc5-mm2 Matthew Dobson
2005-06-02 12:15 ` 2.6.12-rc5-mm2: "bic unavailable using TCP reno" messages Adrian Bunk
2005-06-02 13:58 ` Baruch Even
2005-06-02 17:38 ` Stephen Hemminger
2005-06-02 20:38 ` Adrian Bunk [this message]
2005-06-03 21:37 ` Stephen Hemminger
2005-06-03 22:32 ` Baruch Even
2005-06-02 20:07 ` [-mm patch] fix recursive IPW2200 dependencies Adrian Bunk
2005-06-02 20:19 ` Alejandro Bonilla
2005-06-02 20:54 ` 2.6.12-rc5-mm2 Adrian Bunk
2005-06-03 21:19 ` 2.6.12-rc5-mm2 Yani Ioannou
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=20050602203823.GI4992@stusta.de \
--to=bunk@stusta.de \
--cc=akpm@osdl.org \
--cc=baruch@ev-en.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=shemminger@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.