netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Halasa <khc@pm.waw.pl>
To: Bart De Schuymer <bdschuym@pandora.be>
Cc: Stephen Hemminger <shemminger@osdl.org>,
	"David S. Miller" <davem@redhat.com>,
	greearb@candelatech.com, netdev@oss.sgi.com
Subject: Re: [PATCH/RFC] disallow vlan devices on top of a logical bridge device
Date: 02 Sep 2003 23:43:44 +0200	[thread overview]
Message-ID: <m38yp6uar3.fsf@defiant.pm.waw.pl> (raw)
In-Reply-To: <200309022202.52044.bdschuym@pandora.be>

Bart De Schuymer <bdschuym@pandora.be> writes:

> Let me compare eth1.15 with br0.15, eth0 is a port of br0, eth1 is not, 
> eth0.xx doesn't exist.
> 
> Vlan tagged packet arrives on eth1: the vlan code gets to deal with the
> packet 
> thanks to dev_add_pack(&vlan_packet_type). If the vlan tag differs from 15, 
> the packet is dropped. To outsiders, the indev is eth0.15.

Right.
 
> Vlan tagged packet arrives on eth0: the bridge code gets to deal with the 
> packet. So, to (most) outsiders the indev is br0. The bridge code happily 
> forwards the packet, no matter what the vlan tag might be.

Right. The bridge just bridges the packet based on dest MAC.

> I would find it logical if the indev would be br0.15 for vlan traffic over a 
> bridge br0 when br0.15 exists, and that only vlan15 traffic gets forwarded.
> So, basically, I'd expect br0.15 to act like a bridge, since br0 is a bridge.

I would rather expect that br0 bridges all ethernet frames. br0.15 should
behave like a "static VLAN" port on VLAN-aware switch. This is basically
what VLAN-aware switches do with trunk and single VLAN ports (let alone
VLAN filtering which isn't implemented here).

If you have just one trunk port, don't add it (eth0) to the bridge.
Add eth0.15 to the bridge instead.
-- 
Krzysztof Halasa, B*FH

  reply	other threads:[~2003-09-02 21:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-30 13:04 [PATCH/RFC] disallow vlan devices on top of a logical bridge device Bart De Schuymer
2003-08-30 13:21 ` Bart De Schuymer
2003-08-30 19:46 ` Ben Greear
2003-09-05 11:42   ` [VLAN] " Peter Stuge
2003-08-30 21:16 ` Krzysztof Halasa
2003-08-31  3:30 ` David S. Miller
2003-09-02 15:28   ` Stephen Hemminger
2003-09-02 17:32     ` Bart De Schuymer
2003-09-02 18:24       ` Krzysztof Halasa
2003-09-02 20:02         ` Bart De Schuymer
2003-09-02 21:43           ` Krzysztof Halasa [this message]
2003-09-02 23:05       ` Eran Mann

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=m38yp6uar3.fsf@defiant.pm.waw.pl \
    --to=khc@pm.waw.pl \
    --cc=bdschuym@pandora.be \
    --cc=davem@redhat.com \
    --cc=greearb@candelatech.com \
    --cc=netdev@oss.sgi.com \
    --cc=shemminger@osdl.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).