From owner-freebsd-arch@FreeBSD.ORG Fri Sep 8 22:07:43 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2619516A40F; Fri, 8 Sep 2006 22:07:43 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail33.syd.optusnet.com.au (mail33.syd.optusnet.com.au [211.29.132.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BDFE43D4C; Fri, 8 Sep 2006 22:07:41 +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 mail33.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k88M7ART009581 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 9 Sep 2006 08:07:11 +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 k88M7ANH009793; Sat, 9 Sep 2006 08:07:10 +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 k88M799V009792; Sat, 9 Sep 2006 08:07:10 +1000 (EST) (envelope-from peter) Date: Sat, 9 Sep 2006 08:07:09 +1000 From: Peter Jeremy To: Andre Oppermann Message-ID: <20060908220709.GA759@turion.vk2pj.dyndns.org> References: <450035AD.3040600@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU" Content-Disposition: inline In-Reply-To: <450035AD.3040600@freebsd.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-net@freebsd.org, yar@comp.chem.msu.su, glebius@freebsd.org, freebsd-arch@freebsd.org Subject: Re: Moving ethernet VLAN tags into the mbuf packet header (from mtags) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 22:07:43 -0000 --azLHFNyN32YCQGCU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 2006-Sep-07 17:07:25 +0200, Andre Oppermann wrote: >With the recent addition of a 16bit field for TSO into the mbuf packet >header we've got 16bits left over. I've reserved these bits for the >ethernet VLAN tagging of packet to do away with the allocated mbuf mtag. Sounds reasonable. My only comment is that there doesn't appear to be any way for bpf(4) to filter/capture VLAN information. Before hardware tagging, you could run tcpdump on the vlan parent device and filter on the VLAN tag as well as see the VLAN associated with each packet. I found this very useful for monitoring routed data as well as finding cases where packets were appearing in the wrong VLAN. With hardware tagging (with or without this patch), bpf doesn't have access to the tag information. This is a PITA. --=20 Peter Jeremy --azLHFNyN32YCQGCU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFAemM/opHv/APuIcRArkBAJ9852B/iR8hYOI7MadjjLF8agOe8QCggGDt yqMeEEkto8RSebNvfYMF1WA= =5Yab -----END PGP SIGNATURE----- --azLHFNyN32YCQGCU--