From: Stephen Hemminger <shemminger@linux-foundation.org>
To: Jaime Medrano <jaime.medrano@gmail.com>
Cc: bridge@lists.osdl.org
Subject: Re: [Bridge] [PATCH] Add vlan id to bridge forward database
Date: Mon, 28 Apr 2008 13:57:54 -0700 [thread overview]
Message-ID: <20080428135754.2ae382b4@extreme> (raw)
In-Reply-To: <20080128153914.GA5880@localhost>
On Mon, 28 Jan 2008 16:39:14 +0100
Jaime Medrano <jaime.medrano@gmail.com> wrote:
> I'm resending this mail since I got no answer.
>
> Is there any major problem in this?
>
> Stephen Hemminger wrote:
> >
> > What about the nested vlan case?
> >
>
> Below is a new patch that handles the double-tagging case. I'm not sure
> if it is worth a more generic case. ¿Are triple-tagging and so really used?
>
> > This is a user/kernel ABI change. Does it break old tools?
>
> New patch gets rid of the unused field but it still doesn't break old tools.
>
> Anyway, the user part is not really needed. I just think it could be useful.
>
> Regards,
> Jaime.
>
> ---
> Subject: [PATCH] Add vlan id to bridge forward database
>
> This makes forwarding table aware of 802.1Q vlan ids and stores
> id with MACs in the table. Up to two vlan tags are handled.
>
> It solves problems when having same MAC on diffent pairs
> (vlan, port). Current code gets confused at that situation.
>
> Local MACs are managed as present on every vlan.
I looked at this, and thought about cleaning it up and putting in
next release but right now can't see how it could work with
vlan accelerated hardware.
Your patch doesn't work if hardware does vlan acceleration. Vlan acceleration
strips the tag off so skb->data points to actual contents and tag is passed
up to vlan_receive_skb out of band. By the time the bridge sees the packet the
actual tag is gone.
You might be able to get tag by using some API to reference the VLAN device,
but it all gets complex and racy. Plus not sure if it is really even technically
correct.
next prev parent reply other threads:[~2008-04-28 20:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 16:13 [Bridge] [PATCH] Add vlan id to bridge forward database Jaime Medrano
2007-12-17 16:53 ` Stephen Hemminger
2007-12-18 9:05 ` Jaime Medrano
2008-01-28 15:39 ` Jaime Medrano
2008-01-28 20:29 ` [Bridge] " Benny Amorsen
2008-03-17 18:35 ` [Bridge] " Stephen Hemminger
2008-04-02 9:30 ` Jaime Medrano
2008-04-28 20:57 ` Stephen Hemminger [this message]
2008-04-29 8:24 ` Jaime Medrano
2008-04-29 12:43 ` Benny Amorsen
2008-04-29 15:18 ` Jaime Medrano
2008-04-29 23:16 ` richardvoigt
2008-04-30 2:25 ` Jonathan Thibault
-- strict thread matches above, loose matches on Subject: below --
2007-12-17 16:13 Jaime Medrano
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=20080428135754.2ae382b4@extreme \
--to=shemminger@linux-foundation.org \
--cc=bridge@lists.osdl.org \
--cc=jaime.medrano@gmail.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