From owner-cvs-src@FreeBSD.ORG Fri Nov 12 11:37:30 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09CE516A4CE; Fri, 12 Nov 2004 11:37:30 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A15FD43D3F; Fri, 12 Nov 2004 11:37:29 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id iACBaDar020776; Fri, 12 Nov 2004 06:36:14 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)iACBaDhE020773; Fri, 12 Nov 2004 11:36:13 GMT (envelope-from robert@fledge.watson.org) Date: Fri, 12 Nov 2004 11:36:13 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Attila Nagy In-Reply-To: <41949E0C.1080602@fsn.hu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/em if_em.c if_em.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 11:37:30 -0000 On Fri, 12 Nov 2004, Attila Nagy wrote: > Robert Watson wrote: > > that the card isn't doing it on transmit. Due to a feature of card > > operation, if the global VLAN prepend/strip register isn't set, > > setting the VLAN tag flag on individual packet descriptors will > > cause the packet to be transmitted using ISL encapsulation rather > > than 802.1Q VLAN encapsulation. > > AFAIK, FreeBSD has no ISL support. Would it be possible to set this > flag somehow, so the user could switch between 802.1q and ISL? This way > the NIC would do the tagging, so no kernel support would be needed I > guess. Well, I think that would immediately run into the same problem the VLAN support had: if the kernel doesn't know about the encapsulation then when the card is put in promiscuous mode, you get back the un-encapsulated packets rather than the encapsulated ones. I don't know much/anything about ISL encapsulation, but if it's similar to VLAN encapsulation it probably wouldn't be bard to implement. I identified the encapsulation type being spewed out by the if_em cards using ethereal, which does a pretty good job at identifying fairly arbitrary looking sets of bytes. :-) Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research