From: Florin Malita <fmalita@gmail.com>
To: Jay Vosburgh <fubar@us.ibm.com>
Cc: nsxfreddy@gmail.com, akpm@osdl.org, davem@davemloft.net,
ctindel@users.sourceforge.net, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, bonding-devel@lists.sourceforge.net
Subject: Re: [PATCH] channel bonding: add support for device-indexed parameters
Date: Tue, 27 Sep 2005 01:24:44 -0400 [thread overview]
Message-ID: <20050927012444.be5d5311.fmalita@gmail.com> (raw)
In-Reply-To: <200509262358.j8QNwM8N012009@death.nxdomain.ibm.com>
On Mon, 26 Sep 2005 16:58:22 -0700
Jay Vosburgh <fubar@us.ibm.com> wrote:
> Florin Malita <fmalita@gmail.com> wrote:
> >IMHO the "primary" semantics are completely broken right now and this
> >is a possible fix for it.
>
> The distro provided network init scripts are, as far as I know,
> really the main user of the bonding module parameters. Right now, the
> init scripts will generally load the bonding module multiple times when
> creating multiple bonds with differing parameters. This works tolerably
> well, although I recall that some users have run afoul of Fedora Core
> kernels that could or would not load any module multiple times. I don't
> know if that's still the case today.
How can you load a module multiple times on _any_ distro?
More specifically, how exactly do you get past this check in module.c:
http://lxr.linux.no/source/kernel/module.c#L1534
if (find_module(mod->name)) {
err = -EEXIST;
goto free_mod;
}
That means there can only be one bonding instance => there's only one
"primary" parameter for all bonding devices => the semantics are broken.
eth0 \ eth2 \
bond0 bond1
eth1 / eth3 /
current semantics: modprobe bonding max_bonds=2 primary=eth0 ...
=> bond0(primary==eth0), bond1(primary==eth0)(!!!)
new/patch semantics: modprobe bonding max_bonds=2 primary=eth0,eth2 ...
=> bond0(primary==eth0), bond1(primary==eth2)
Currently it's impossible to implement multiple
prioritized active/backup bonds - or am I missing something?
> In any event, your patch does not provide enough flexibility to
> allow the distro scripts to switch to it (it omits arp_ip_target), so
> the init scripts will be unable to switch.
The patch is not forcing the scripts to switch since the old syntax/ABI
still works (one reason I didn't touch arp_ip_target was to preserve
that). It's simply providing an additional (saner) approach to bonding
configuration which can easily co-exist with the sysfs solution.
> I'm not sure I see the real value.
I'm not sure I see the real value in bonding _without_ the capabilities
provided by this patch 8)
Not being able to set a (different) preferred
interface/primary for each bond device makes it unacceptable for
deployment in our environment.
Florin
next prev parent reply other threads:[~2005-09-27 5:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 4:04 [PATCH] channel bonding: add support for device-indexed parameters Florin Malita
2005-09-22 6:03 ` Jason R. Martin
2005-09-22 13:16 ` Florin Malita
2005-09-26 23:58 ` Jay Vosburgh
2005-09-27 5:24 ` Florin Malita [this message]
2005-09-27 7:11 ` Jay Vosburgh
2005-09-27 13:40 ` Florin Malita
2005-09-27 13:54 ` [Bonding-devel] " Eric Paris
2005-09-27 14:10 ` Florin Malita
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=20050927012444.be5d5311.fmalita@gmail.com \
--to=fmalita@gmail.com \
--cc=akpm@osdl.org \
--cc=bonding-devel@lists.sourceforge.net \
--cc=ctindel@users.sourceforge.net \
--cc=davem@davemloft.net \
--cc=fubar@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nsxfreddy@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).