netdev
[Top] [All Lists]

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

To: Stephen Hemminger <shemminger@xxxxxxxx>
Subject: Re: [leo@xxxxxxxxx: [PATCH] ethernet-bridge: update skb->priority in case forwarded frame has VLAN-header]
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Mon, 07 Mar 2005 10:13:37 -0800
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050307100744.429e100a@xxxxxxxxxxxxxxxxx>
Organization: Candela Technologies
References: <20050305141225.GA5180@xxxxxxxxxxxxxxxxx> <20050307100744.429e100a@xxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041020
Stephen Hemminger wrote:
On Sat, 5 Mar 2005 15:12:25 +0100
Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx> wrote:


----- Forwarded message from Leo Yuriev <leo@xxxxxxxxx> -----

From: Leo Yuriev <leo@xxxxxxxxx>
To: Lennert Buytenhek <buytenh@xxxxxxx>,
        Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Subject: [PATCH] ethernet-bridge: update skb->priority in case forwarded frame 
has VLAN-header

Kernel 2.6 (2.6.11)

When ethernet-bridge forward a packet and such ethernet-frame has
VLAN-tag, bridge should update skb->prioriry for properly QoS
handling.

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.

VLAN does handle this.  The main use for the patch is for bridging VLANs
across a normal ethernet device, it appears.  Ie, not really using
the VLAN module at all.

Ben

--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com


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