[From nobody Mon Jun 30 12:11:16 2008 Return-Path: kaber@trash.net Delivery-Date: Mon Jun 30 11:49:33 2008 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on cheddar.ICSI.Berkeley.EDU X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.8 Received: from stinky.trash.net (stinky.trash.net [213.144.137.162]) by fruitcake.ICSI.Berkeley.EDU (8.12.11.20060614/8.12.11) with ESMTP id m5UIn8a5026434 for <pavlin@ICSI.Berkeley.EDU>; Mon, 30 Jun 2008 11:49:33 -0700 (PDT) Received: from [192.168.0.123] (unknown [78.42.204.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by stinky.trash.net (Postfix) with ESMTP id F1EBC948A5; Mon, 30 Jun 2008 20:49:06 +0200 (MEST) Message-ID: <48692945.2030200@trash.net> Date: Mon, 30 Jun 2008 20:43:17 +0200 From: Patrick McHardy <kaber@trash.net> User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509) MIME-Version: 1.0 To: Ben Greear <greearb@candelatech.com> CC: Pavlin Radoslavov <pavlin@ICSI.Berkeley.EDU>, xorp-hackers@xorp.org Subject: Re: Linux VLAN config if interface is down References: <200806301834.m5UIYQjb023376@fruitcake.ICSI.Berkeley.EDU> <48692871.4060909@candelatech.com> In-Reply-To: <48692871.4060909@candelatech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ben Greear wrote: > Pavlin Radoslavov wrote: >> [Note: this is not exactly XORP-specific question, but it affects >> the XORP FEA] >> >> Ben, >> >> I have a Linux VLAN-related question which hopefully you can answer, >> because I believe you were the primary author of the VLAN code >> in the Linux kernel. > > I did most of the original work, but Patrick is now the maintainer > and knows the code better. > > I would like to see this constraint you mention removed as well. > From what I recall, the main problem is that some HW-Accel drivers > might not handle adding vlans properly while the NIC is disabled. I've planned to look into this inconsisteny once I've fixed the other inconsistencies related to HW accel and packet sockets, but so far I didn't find enough time to finish this. Something like 2.6.28 sounds realistic. From a quick look at a few drivers with VLAN accel support it seems they would handle this fine, so if someone really needs a short term fix, I'd suggest to simply remove that check from the VLAN code. ]