Re: [PATCH 3/3] bonding: make device count build-time configurable

From: Lubomir Rintel
Date: Fri Feb 05 2016 - 10:07:27 EST


HiÂBjÃrn,

On Tue, 2016-01-12 at 22:40 +0100, BjÃrn Mork wrote:
> David Miller <davem@xxxxxxxxxxxxx> writes:
> > From: Lubomir Rintel <lkundrak@xxxxx>
> > Date: Tue, 12 Jan 2016 18:19:49 +0100
> >
> > > It's still an improvement to let the distributions decide if
> > > they're
> > > keeping "ip link add" broken or possibly affecting the scripts.
> >
> > That it is "broken" is your opinion.
> >
> > Document the behavior.ÂÂIt is not broken if the user is told to be
> > mindful of what devices are created by default.
> >
> > There is way too much downside to changing this.
>
> Besides, distributions or admins can already change that behaviour if
> they consider it "broken", using the existing module parameter:
>
> Â# echo "options bonding max_bonds=0" >/etc/modprobe.d/bonding.conf
> Â# rmmod bonding
> Â# ip link add bond0 type bond
> Â(no error here)
>
> This method should be well known and understood by most users,
> contrary
> to some odd CONFIG_ build time setting.

Yes, that's an alternative solution. We may end up shipping such
configuration file, though it's not really clear what package should
ship it (probably systemd?).

I'd still prefer a kernel build-time option. It's more likely for
distributions to do the decision they prefer when running make
oldconfig. I'm assuming most distros would like to drop the legacy
behavior; at this point noone probably relies on it anyway, given
NetworkManager works around this by manually loading the module with
the maxbonds=0 manually.

Also, there's prior art to addressing this in kernel; the block
loopback.

> BjÃrn

Regards,
Lubo