From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [BUG] 2.6.29-rc* QinQ vlan trunking regression Date: Thu, 05 Mar 2009 06:51:25 +0100 Message-ID: <49AF685D.90907@trash.net> References: <49AE509B.3000305@trash.net> <20090304.025914.149394356.davem@davemloft.net> <49AE69DD.80802@trash.net> <20090304.195328.106253933.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: bart@jukie.net, greearb@candelatech.com, shemminger@vyatta.com, dada1@cosmosbay.com, frank.blaschka@de.ibm.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: David Miller Return-path: Received: from stinky.trash.net ([213.144.137.162]:58148 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751039AbZCEFva (ORCPT ); Thu, 5 Mar 2009 00:51:30 -0500 In-Reply-To: <20090304.195328.106253933.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: David Miller wrote: > From: Patrick McHardy > Date: Wed, 04 Mar 2009 12:45:33 +0100 > >> This is a bit tricky to fix since we actually need some valid >> ops before invoking ->init(). One way would be to move the compat >> ops initialization to a seperate function and have VLAN use it to >> switch its ops. > > Mind if I push this into net-2.6? > > vlan: Fix vlan-in-vlan crashes. > > As analyzed by Patrick McHardy, vlan needs to reset it's > netdev_ops pointer in it's ->init() function but this > leaves the compat method pointers stale. > > Add a netdev_resync_ops() and call it from the vlan code. This looks fine, thanks. Even if it doesn't fix this particular report, I think its appropriate for net-2.6.