From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Nicolas_de_Peslo=FCan?= Subject: Re: [RFC PATCH] net/core: fix skb handling on netif serves for both bridge and vlan Date: Sat, 05 Mar 2011 14:53:47 +0100 Message-ID: <4D72406B.6090504@gmail.com> References: <1299149713-18740-1-git-send-email-dfeng@redhat.com> <20110305103613.GB7799@psychotron.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Xiaotian Feng , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Tom Herbert To: Jiri Pirko Return-path: In-Reply-To: <20110305103613.GB7799@psychotron.redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Le 05/03/2011 11:36, Jiri Pirko a =E9crit : > Thu, Mar 03, 2011 at 11:55:13AM CET, dfeng@redhat.com wrote: >> Consider network topology as follows: >> >> eth0 eth1 >> |_____| >> | >> bond0 --- br0 >> | >> vlan0 --- br1 >> >> bond0 serves for both br0 and vlan0, if a vlan tagged packet was sen= t >> to br1 through bond0, bridge handling code is seeing the packet on b= ond0 >> and handing it off to my "legacy" bridge before vlan_tx_tag_present >> and vlan_hwaccel_do_receive even haven't a chance to look at it. >> >> Moving the vlan_tx_tag_present before bridge/macvlan handling code c= ould >> cure this. > > Wouldn't this break "eth0 - br0 - br0.5"? I think it would. One more reason to build a single interface stacking = framework... Nicolas.