Ethernet Bridge development
 help / color / mirror / Atom feed
From: David Lamparter <equinox@diac24.net>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: Nick Carter <ncarter100@gmail.com>,
	bridge@linux-foundation.org, David Lamparter <equinox@diac24.net>,
	Ed Swierk <eswierk@bigswitch.com>,
	netdev@vger.kernel.org
Subject: Re: [Bridge] [RFC] bridge: allow passing link-local multicast
Date: Fri, 19 Aug 2011 04:27:31 +0200	[thread overview]
Message-ID: <20110819022731.GC180151@jupiter.n2.diac24.net> (raw)
In-Reply-To: <20110818093941.5ebf716b@nehalam.ftrdhcpuser.net>

On Thu, Aug 18, 2011 at 09:39:41AM -0700, Stephen Hemminger wrote:
> On Thu, 18 Aug 2011 16:52:45 +0100
> Nick Carter <ncarter100@gmail.com> wrote:
> 
> > On 18 August 2011 16:10, Stephen Hemminger <shemminger@vyatta.com> wrote:
> > > On Thu, 18 Aug 2011 16:06:19 +0100
> > > Nick Carter <ncarter100@gmail.com> wrote:
> > >
> > >> Why can't we use the 802.1D specified STP group address to identify ?
> > >> The existing code uses that address.
> > >> I know you said on another thread that there are people using other addresses.
> > >> Who are these people ?
> > >> Are they following any standard ?
> > >> What address / address range are they using ?
> > >
> > > The group address can be reprogrammed, and it is settable on other
> > > routing equipment. People do it to create spanning tree domains.

I just checked my hardware switches. Neither my Cisco devices nor my HP
ProCurves can reprogram the spanning tree address.

Can you provide an example? Even Linux can't do this, can it?

> > But before the new
> > +               if (!is_stp_bpdu(skb) && br_forward_link_local)
> > check, we have already checked
> > 	if (unlikely(is_link_local(dest))) {
> > So the frame must have a link local destination.  If the reprogrammed
> > group address is outside of the link local range then the new code in
> > this patch will never be hit.  If the reprogrammed group address is in
> > the link local range then i'd suggest my previous group_fwd_mask patch
> > is cleaner and more flexible.
> 
> The problem is that the group_fwd_mask is specific to the address
> not the protocol.

Until corrected, I would consider either match a valid option, and I
would say Nick's patch is much cleaner than yours.

Also, you're arguing against yourself, saying that matching the address
is a problem, but the code you're proposing does exactly that - it first
matches the address (is_link_local()), then the protocol. (wtf?)


-David


  reply	other threads:[~2011-08-19  2:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAF5U64C+WgQhfJL3zfVnvzE7p=G61humQCObHGUxAvY2-MGAFQ@mail.gmail.com>
     [not found] ` <CAF5U64CJTWDn8E9+XVLFsdaSbiu-4Rd9XmxZq7ReziRNZviO6Q@mail.gmail.com>
     [not found]   ` <20110812154545.79d8313f@nehalam.ftrdhcpuser.net>
     [not found]     ` <CAF5U64B_fb2tFMLHmK+zw3n6gmq+bYDyFnXhLE0ayssK5m+THA@mail.gmail.com>
2011-08-15 22:05       ` [Bridge] [RFC] bridge: allow passing link-local multicast Stephen Hemminger
2011-08-18 15:06         ` Nick Carter
2011-08-18 15:10           ` Stephen Hemminger
2011-08-18 15:52             ` Nick Carter
2011-08-18 16:39               ` Stephen Hemminger
2011-08-19  2:27                 ` David Lamparter [this message]
2011-08-19 20:58                   ` [Bridge] [RFC] bridge: add netfilter hook for forwarding 802.1D group addresses Stephen Hemminger
2011-08-19 22:18                     ` Christian Benvenuti (benve)
2011-08-19 22:24                       ` Stephen Hemminger
2011-08-20 15:31                     ` Bart De Schuymer
2011-08-22 13:59                     ` David Lamparter

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=20110819022731.GC180151@jupiter.n2.diac24.net \
    --to=equinox@diac24.net \
    --cc=bridge@linux-foundation.org \
    --cc=eswierk@bigswitch.com \
    --cc=ncarter100@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@vyatta.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