From owner-freebsd-net Mon Jul 23 12:22:42 2001 Delivered-To: freebsd-net@freebsd.org Received: from altrade.nijmegen.inter.nl.net (altrade.nijmegen.inter.nl.net [193.67.237.6]) by hub.freebsd.org (Postfix) with ESMTP id 128FD37B407 for ; Mon, 23 Jul 2001 12:22:37 -0700 (PDT) (envelope-from Peter.Blok@inter.NL.net) Received: from ntpc by altrade.nijmegen.inter.nl.net via 1Cust11.tnt1.rtm1.nl.uu.net [213.116.96.11] with SMTP id VAA12101 (8.8.8/1.3); Mon, 23 Jul 2001 21:22:26 +0200 (MET DST) Reply-To: From: "Peter Blok" To: "'Vladimir B. Grebenschikov'" , "'C. Stephen Gunn'" Cc: "'Brooks Davis'" , Subject: RE: sysctl net.link.vlan.link.proto Date: Mon, 23 Jul 2001 21:18:28 +0200 Message-ID: <000f01c113ac$413ddb00$8a02a8c0@ntpc> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <15194.43573.236252.134077@vbook.express.ru> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I fully agree with Steve. The netgraph code is ideal to handle the vlan stuff. Take a look at the port aggregation (etherchannel) Bill Paul has done as well -----Original Message----- From: owner-freebsd-net@FreeBSD.ORG [mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Vladimir B. Grebenschikov Sent: Sunday, July 22, 2001 12:26 To: C. Stephen Gunn Cc: Brooks Davis; net@FreeBSD.ORG Subject: Re: sysctl net.link.vlan.link.proto C. Stephen Gunn writes: > > I'm working on modernizing the vlan device (making it loadable, > > unloadable, and clonable) and I've run into this sysctl. > > This shoud allow you to move the check for 802.1q packets down into > the normal ether_demux() which classifies packets based on ethertype. > > The former code was a check right above the main switch statement in > ether_demux() because it was a sysctl, not a constant. > > I have some other patches around that ease the interrupt-time requirements > by scheduling a NETISR for vlan traffic. I wasn't ever sure if that was > a true win, so I didn't contrib them. I could dig them up if you're > really interested in spiffing up the VLAN code. ;-) May be most right way to handle VLANs is netgraph mechanism ? I've dig a bit into code and found that to get such mechanism working it need to add ng_iface node hook to inject not demuxed frames. And fix a bit code related to ARP. > - Steve -- TSB Russian Express, Moscow Vladimir B. Grebenschikov, vova@express.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message