netdev
[Top] [All Lists]

Re: [leo@xxxxxxxxx: [PATCH] ethernet-bridge: update skb->priority in cas

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: [leo@xxxxxxxxx: [PATCH] ethernet-bridge: update skb->priority in case forwarded frame has VLAN-header]
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Mon, 7 Mar 2005 10:50:36 -0800
Cc: Ben Greear <greearb@xxxxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <422C9A92.6040902@xxxxxxxxx>
Organization: Open Source Development Lab
References: <20050305141225.GA5180@xxxxxxxxxxxxxxxxx> <20050307100744.429e100a@xxxxxxxxxxxxxxxxx> <422C9A92.6040902@xxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Mon, 07 Mar 2005 19:16:50 +0100
Patrick McHardy <kaber@xxxxxxxxx> wrote:

> Stephen Hemminger wrote:
> >>
> >>This small patch does this. Currently vlan_TCI-priority directly
> >>mapped to skb->priority, but this looks enough.
> > 
> > I don't see why the VLAN code doesn't handle this itself. I don't like 
> > special
> > case layer violations because it becomes a slippery slope with more and
> > more additions.
> 
> The patch is meant for bridges briging vlan frames without doing
> vlan themselves. I agree with you, from the bridge point of view
> a vlan header is just as outside of its scope as an IP header,
> that's why I proposed to put it in an ebtables target and make
> it useable for vlan and IP.

That's much better. 
Leave the protocol violations to netfilter modules where they belong ;-)

<Prev in Thread] Current Thread [Next in Thread>