Received: by oss.sgi.com id ; Sat, 3 Jun 2000 02:04:34 -0700 Received: from tochna.technion.ac.il ([132.68.48.10]:6415 "EHLO tochna.technion.ac.il") by oss.sgi.com with ESMTP id ; Sat, 3 Jun 2000 02:04:16 -0700 Received: from localhost (gleb@localhost) by tochna.technion.ac.il (8.8.7/8.8.5) with SMTP id NAA09826; Sat, 3 Jun 2000 13:03:41 +0300 (IDT) Date: Sat, 3 Jun 2000 13:03:40 +0300 (IDT) From: Gleb Natapov To: Rob Walker cc: greearb@candelatech.com, buytenh@gnu.org, hadi@cyberus.ca, netdev@oss.sgi.com Subject: Re: 802.1q Was (Re: Plans for 2.5 / 2.6 ??? In-Reply-To: <14648.24946.413472.365255@tungsten.su.valinux.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-netdev@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;netdev-outgoing On Fri, 2 Jun 2000, Rob Walker wrote: > > Ben> On this account, my vlan implementation, and Lenert and Gleb's > Ben> are almost identical. Other than some internal issues, I believe > Ben> the only user-visible difference between my imp and theirs is > Ben> that they re-write the packet header on the way upthe stack so > Ben> that it looks **exactly** like an ethernet pkt, where as I just > Ben> leave the header alone and pull 4 extra bytes off of the SKB > Ben> before giving it to the higher levels. > > Remember how hard *BSD keeps ragging that their stack isfaster due to > "zero copy"? I can't evaluate whether that statement is true, or if > the speed advantage has worn off with time, but I do think that the > faster the implementation, the better. You mean you want to sacrifice "correctness" of implementation to speed? I also was against moving headers around, until I encountered dhcp problem. Anyway, it is useless to argue about performance loss until someone actually does benchmarks and provides us with real numbers. I don't see any performance loss with ping -f. > > Ben> I like their idea, but it means they have to move the header > Ben> around for each pkt. In mine, the packet is not modified, *BUT*, > Ben> programs such as dhcpd which expect to be reading the raw > Ben> ethernet pkt have to be modified. > > Maybe a run-time switch could be added to dhcpd, or you could extend > it to automatically read both types of frames as detected. Is this > even possible? > I think that the perfect solution will be to remove tags from frames _only_ if some process actually reads ethernet headers from this vlan device. Any ideas how this can be implemented? > rob -- Gleb.