Netdev List
 help / color / mirror / Atom feed
From: David Lamparter <equinox@diac24.net>
To: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: David Lamparter <equinox@diac24.net>,
	netdev@vger.kernel.org, Nick Carter <ncarter100@gmail.com>
Subject: Re: [PATCH] bridge: revisit IEEE 802 local multicast groups
Date: Fri, 1 Jul 2011 18:40:01 +0200	[thread overview]
Message-ID: <20110701164001.GD2613105@jupiter.n2.diac24.net> (raw)
In-Reply-To: <20110701092612.07b045bf@nehalam.ftrdhcpuser.net>

On Fri, Jul 01, 2011 at 09:26:12AM -0700, Stephen Hemminger wrote:
> On Fri,  1 Jul 2011 13:12:50 +0200
> David Lamparter <equinox@diac24.net> wrote:
> 
> > this first and foremost fixes handling of bonding frames, which were
> > incorrectly forwarded until now. they need to never cross a bridge.
> > 
> > it also introduces a new switch to control handling of the other
> > not-that-special groups; if you want them forwarded despite having
> > STP running, there's a sysfs knob for that. you can implement your
> > local policy with ebtables then.
> > 
> > in the end, we now match hardware switch behaviour rather closely, but
> > still additionally allow playing tricks on things like 802.1X.
> > 
> > Signed-off-by: David Lamparter <equinox@diac24.net>
> > Cc: Stephen Hemminger <shemminger@linux-foundation.org>
> > Cc: Nick Carter <ncarter100@gmail.com>
> 
> Forwarding pause frames is wrong.

None of the patches discussed forwards pause frames.

> I wonder if the best solution for this crap is to just write
> a userland program to do the forwarding.

You can't do that without moving the remaining STP bits to userspace,
since if you want to keep STP in-kernel, you still need some policy.

Also, there is a fundamental conflict between a working bridge and the
desire to work as fully transparent L2 tap. As long as we forward
802.3ad/bonding frames, we are a broken bridge. Yet we still want that
for the tap case.

Plus, we don't need the userspace daemon if we can set the policy with
ebtables - which we can do if and only if we allow stripping down the
built-in restrictions.

I think the variant that I suggested to Michał, with a 3-value knob
"drop it if STP" / "forward except pause/bond" / "forward all" is
the best way to go. It leaves the default usable but allows controlling
everything through ebtables.


-David


      reply	other threads:[~2011-07-01 16:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-01 11:12 [PATCH] bridge: revisit IEEE 802 local multicast groups David Lamparter
2011-07-01 16:26 ` Stephen Hemminger
2011-07-01 16:40   ` David Lamparter [this message]

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=20110701164001.GD2613105@jupiter.n2.diac24.net \
    --to=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