mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: Stephen Hemminger <shemminger@osdl.org>
Cc: mlists@danielinux.net, linux-net@vger.kernel.org,
	linux-kernel@vger.kernel.org, ccaini@deis.unibo.it,
	rfirrincieli@arces.unibo.it
Subject: Re: [PATCH] TCP-Hybla proposal
Date: Tue, 22 Feb 2005 11:07:22 -0800	[thread overview]
Message-ID: <20050222110722.0a9fd761.davem@davemloft.net> (raw)
In-Reply-To: <20050222094219.0a8efbe1@dxpl.pdx.osdl.net>

On Tue, 22 Feb 2005 09:42:19 -0800
Stephen Hemminger <shemminger@osdl.org> wrote:

> The protocol choices are mutually exclusive, if you walk through the code
> (or do experiments), you find that that only one gets used.  As part of the
> longer term plan, I would like to:
> 	- have one sysctl
> 	- choice by route and destination
> 	- union for fields in control block

Let's take a first baby step and make the congestion control
algorithm a single enumeration instead of all of this
tp->foo_cong_ctrl_on, tp->bar_cong_ctrl_on stuff.  Then make
the union to shrink the tcp_sock size, we could even use an
anonymous union to make the patch a lot smaller.

We can't just get rid of all the existing sysctls.  We can
add a new one that just makes the choice as you describe.
We could therefore do something like this:

enum tcp_congctrl_alg tcp_global_congctrl_alg;

And then we use a special sysctl handler for all the individual
sysctl_tcp_bic et al. enablers that does something like:

	if (tcp_global_congctrl_alg == TCP_CONGCTRL_BIC)
		return 1;
	return 0;

and setting just does the necessary assignment to
tcp_global_congctrl_alg.  Well... I hope the sysctl framework
allows something like this :-)  If not, it should not be hard to
add.

  parent reply	other threads:[~2005-02-22 19:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-22 14:34 Daniele Lacamera
2005-02-22 15:42 ` Daniele Lacamera
2005-02-22 17:42 ` Stephen Hemminger
2005-02-22 18:03   ` John Heffner
2005-02-22 18:14     ` David S. Miller
2005-02-23  0:41       ` Tobias DiPasquale
2005-02-23  4:22         ` Stephen Hemminger
2005-02-22 19:07   ` David S. Miller [this message]
2005-02-22 20:16   ` Baruch Even
2005-02-23 11:58   ` Angelo Dell'Aera
2005-02-23  4:00 ` Matt Mackall
2005-02-23 17:27   ` Daniele Lacamera

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=20050222110722.0a9fd761.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ccaini@deis.unibo.it \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=mlists@danielinux.net \
    --cc=rfirrincieli@arces.unibo.it \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®