From owner-cvs-all@FreeBSD.ORG Wed Sep 20 09:28:49 2006 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAA716A4C9; Wed, 20 Sep 2006 09:28:49 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail03.syd.optusnet.com.au (mail03.syd.optusnet.com.au [211.29.132.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67DF043D73; Wed, 20 Sep 2006 09:28:46 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail03.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k8K9SgGs005152 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Sep 2006 19:28:44 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k8K9Sgx0001417; Wed, 20 Sep 2006 19:28:42 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k8K9SgEv001416; Wed, 20 Sep 2006 19:28:42 +1000 (EST) (envelope-from peter) Date: Wed, 20 Sep 2006 19:28:42 +1000 From: Peter Jeremy To: David Malone Message-ID: <20060920092842.GD738@turion.vk2pj.dyndns.org> References: <200609182218.k8IMIMUT059300@repoman.freebsd.org> <200609191431.01649.jkim@FreeBSD.org> <20060919190449.GC720@turion.vk2pj.dyndns.org> <200609191535.08184.jkim@FreeBSD.org> <20060920072626.GA738@turion.vk2pj.dyndns.org> <20060920085236.GA58179@walton.maths.tcd.ie> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9dgjiU4MmWPVapMU" Content-Disposition: inline In-Reply-To: <20060920085236.GA58179@walton.maths.tcd.ie> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/dev/bge if_bge.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 09:28:49 -0000 --9dgjiU4MmWPVapMU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 2006-Sep-20 09:52:36 +0100, David Malone wrote: >Putting ethernet specific code in bpf_* feels like a bad idea. Is this any worse than having ethernet specific code in the mbuf header? > It >should be possible to leave hardware assisted VLAN tagging on and >get ether input to reinsert the tag only in cases where there is a >bpf listener. This could still be seen as a layering violation but is probably cleaner. >(It's interesting to note that as ethernet cards introduce more >features it is getting harder for us to tell what we put on the >wire. This probably makes it more critical for bpf to not automatically disable NIC features, otherwise we run the risk of introducing heisenbugs in the network system. >With VLAN tagging we can't trust the VLAN tag. Unlike checksums etc, the kernel must be able to determine the VLAN tag to be able to process the packet. The problem is that it isn't where bpf expects. --=20 Peter Jeremy --9dgjiU4MmWPVapMU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEQnK/opHv/APuIcRAhyCAJ9yN5o67IpSlhSKDYpgbG1OTtZ7VgCeOs/n D+1yTJ3XsGY10u8g9CL73Sw= =78// -----END PGP SIGNATURE----- --9dgjiU4MmWPVapMU--