From: "Michał Mirosław" <mirqus@gmail.com>
To: David Lamparter <equinox@diac24.net>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>,
Nick Carter <ncarter100@gmail.com>,
netdev@vger.kernel.org, davem@davemloft.net
Subject: Re: bridge vs. bonding/pause frames (was: Forward EAPOL...)
Date: Fri, 1 Jul 2011 19:59:29 +0200 [thread overview]
Message-ID: <BANLkTin_rCS1bJFRhAEGhE0+skFxbrE5_Q@mail.gmail.com> (raw)
In-Reply-To: <20110701151626.GC2613105@jupiter.n2.diac24.net>
W dniu 1 lipca 2011 17:16 użytkownik David Lamparter
<equinox@diac24.net> napisał:
> On Fri, Jul 01, 2011 at 04:58:56PM +0200, Michał Mirosław wrote:
> [...]
>> > We _MUST_NOT_ pass bonding frames in any case, but we
>> > currently do that if STP is off. (cf. my earlier patch 1/2)
>>
>> If you use linux box as a (invisible) L2 network tap, then you want to
>> pass everything in the hub mode (including LACP/whatever).
>
> We must not do that by default, this breaks bridges with bonding devices
> as ports. I'm actively band-aiding that problem with ebtables on one of
> my boxes currently.
>
> How about I change "stp_forward_802local" to "forward_802local" and it
> gets 3 values like:
> - 0 (default) behave like a switch, if STP is on then drop all 16
> groups, if STP is off then drop :01 and :02
> - 1 forward regular groups - drop :01 and :02, forward everything else
> - 2 forward everything ("invisible tap mode")
> optional:
> - -1 drop all 16 groups even if STP is off (not needed, can be done with
> ebtables...)
>
> btw, since the drivers should eat up pause frames, you're not a fully
> invisible L2 tap anyway.
If -1 can be done with ebtables what is different for 0 and 1 cases?
Another idea: you could make this a 16-bit bitmap (bit per group) x2
(STP vs non-STP) - that would cover all uses with the same amount of
code.
Best Regards,
Michał Mirosław
next prev parent reply other threads:[~2011-07-01 17:59 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 21:39 [PATCH] bridge: Forward EAPOL Kconfig option BRIDGE_PAE_FORWARD Nick Carter
2011-06-23 22:29 ` Stephen Hemminger
2011-06-24 18:29 ` Nick Carter
2011-06-24 19:08 ` Stephen Hemminger
2011-06-24 21:29 ` Nick Carter
2011-06-24 23:33 ` Nick Carter
2011-06-28 15:02 ` David Lamparter
2011-06-28 15:10 ` Stephen Hemminger
2011-06-28 16:00 ` David Lamparter
2011-06-28 18:34 ` Nick Carter
2011-06-28 18:58 ` David Lamparter
2011-06-28 20:00 ` Nick Carter
2011-06-28 20:22 ` David Lamparter
2011-06-28 20:54 ` Nick Carter
2011-06-28 21:04 ` David Lamparter
2011-06-28 21:22 ` Nick Carter
2011-06-28 21:46 ` David Lamparter
2011-06-28 22:03 ` [PATCH 1/2] bridge: ignore pause & bonding frames David Lamparter
2011-06-28 22:03 ` [PATCH 2/2] bridge: pass through 802.1X & co. in 'dumb' mode David Lamparter
2011-06-29 22:56 ` Nick Carter
2011-06-28 22:10 ` [PATCH v2] bridge: ignore pause & bonding frames David Lamparter
2011-06-29 22:46 ` [PATCH] bridge: Forward EAPOL Kconfig option BRIDGE_PAE_FORWARD Nick Carter
2011-06-29 23:34 ` Stephen Hemminger
2011-07-01 10:16 ` David Lamparter
2011-07-01 14:58 ` Michał Mirosław
2011-07-01 15:16 ` bridge vs. bonding/pause frames (was: Forward EAPOL...) David Lamparter
2011-07-01 17:59 ` Michał Mirosław [this message]
2011-07-01 21:10 ` Nick Carter
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=BANLkTin_rCS1bJFRhAEGhE0+skFxbrE5_Q@mail.gmail.com \
--to=mirqus@gmail.com \
--cc=davem@davemloft.net \
--cc=equinox@diac24.net \
--cc=ncarter100@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@linux-foundation.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).