netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Veaceslav Falico <vfalico@gmail.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	Jay Vosburgh <j.vosburgh@gmail.com>,
	Andy Gospodarek <andy@greyhouse.net>
Subject: Re: [PATCH net-next 2/2] bonding: make hard-coded defines configurable at build
Date: Tue, 15 Jul 2014 19:11:39 +0200	[thread overview]
Message-ID: <20140715171139.GD5225@mikrodark.usersys.redhat.com> (raw)
In-Reply-To: <CAADnVQJaUQsDF1--4ffnCUz=1Tw1Ox=kgUw3h1L1EnrDs0WQfw@mail.gmail.com>

On Tue, Jul 15, 2014 at 09:45:36AM -0700, Alexei Starovoitov wrote:
>On Tue, Jul 15, 2014 at 9:18 AM, Veaceslav Falico <vfalico@gmail.com> wrote:
>> On Tue, Jul 15, 2014 at 08:48:01AM -0700, Alexei Starovoitov wrote:
>>>
>>> On Tue, Jul 15, 2014 at 3:15 AM, Veaceslav Falico <vfalico@gmail.com>
>>> wrote:
>>>>
>>>> +
>>>> +config BOND_MAX_VLAN_ENCAP
>>>> +       int "Maximum number of stacked vlans on top of bonding"
>>>> +       default "2"
>>>> +
>>>
>>> I don't think we should allow changing these defaults so easily.
>>> Not a single HW supports 3 vlan tags. There is no standard for it either.
>>> Why you would ever change this?
>>
>> There have been discussions about vlan nestings for bonding, and the
>> outcome was that more than 2 are possible. Also, iirc, no standard limits
>> it to only 2.
>
>standard doesn't say that the maximum is 2, but it doesn't specify what
>should be done in such case, so all vlan-aware switches that I know will
>be just dropping packets with 3 vlans.

There might be switches that support it/don't really care, there are
bridges (including soft ones) etc. that all can make use of it.

Given that it's a build-time configuration option that affects a small part
of arp monitoring, which is a small part of bonding module, which is ... -
I don't understand why it can't be configured.

>Therefore for bond driver there is no reason to accept such packets
>in the first place from user space, since they won't go too far in the network.
>
>> These defaults are scalable by their nature, and there are people
>> maintaining their own patches to change them. So making them available to
>> be configured at compile time is a good thing to do, I think.
>
>people keep a patch to support 3 vlans? what's the use case?

I guess it has something to do with virtualization, including nested one.

But, again, does this matter? I don't see how it can give us something bad.
It's a configuration option with a default value that suits most users, and
that might be configured for some advanced/weird use-cases.

  reply	other threads:[~2014-07-15 17:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 10:15 [PATCH net-next 0/2] bonding: add its own Kconfig Veaceslav Falico
2014-07-15 10:15 ` [PATCH net-next 1/2] bonding: create " Veaceslav Falico
2014-07-15 10:15 ` [PATCH net-next 2/2] bonding: make hard-coded defines configurable at build Veaceslav Falico
2014-07-15 15:48   ` Alexei Starovoitov
2014-07-15 16:18     ` Veaceslav Falico
2014-07-15 16:45       ` Alexei Starovoitov
2014-07-15 17:11         ` Veaceslav Falico [this message]
2014-07-15 17:33           ` Alexei Starovoitov
2014-07-15 17:53             ` Veaceslav Falico
2014-07-15 18:55               ` Alexei Starovoitov
2014-07-15 19:18                 ` Veaceslav Falico
2014-07-16  1:01                   ` David Miller
2014-07-15 17:11   ` Sergei Shtylyov
2014-07-16  1:10 ` [PATCH net-next 0/2] bonding: add its own Kconfig David Miller
2014-07-16  7:20   ` Veaceslav Falico

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=20140715171139.GD5225@mikrodark.usersys.redhat.com \
    --to=vfalico@gmail.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=andy@greyhouse.net \
    --cc=j.vosburgh@gmail.com \
    --cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).