From owner-freebsd-net@FreeBSD.ORG Mon Mar 29 10:39:03 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84BD616A4CE for ; Mon, 29 Mar 2004 10:39:03 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FC9C43D2D for ; Mon, 29 Mar 2004 10:39:02 -0800 (PST) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i2TIgGAZ000824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Mar 2004 21:42:18 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i2TIctEW074061; Mon, 29 Mar 2004 21:38:55 +0300 (EEST) (envelope-from ru) Date: Mon, 29 Mar 2004 21:38:54 +0300 From: Ruslan Ermilov To: David Gilbert Message-ID: <20040329183854.GC73842@ip.net.ua> References: <200403251118.40718.jbarrett@amduat.net> <20040325234527.GC85417@ip.net.ua> <200403251650.35714.jbarrett@amduat.net> <16488.26976.314273.752771@canoe.dclg.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jousvV0MzM2p6OtC" Content-Disposition: inline In-Reply-To: <16488.26976.314273.752771@canoe.dclg.ca> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-net@freebsd.org Subject: Re: Disabling VLAN_HWTAGGING X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Mar 2004 18:39:03 -0000 --jousvV0MzM2p6OtC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 29, 2004 at 01:22:24PM -0500, David Gilbert wrote: > >>>>> "Jacob" =3D=3D Jacob S Barrett writes: >=20 > Jacob> On Thursday 25 March 2004 03:45 pm, you wrote: > >> > Can you disable VLAN_HWTAGGING? > >>=20 > >> Not without modifying if_nge.c, but it should be pretty trivial. >=20 > Jacob> As trivial as setting chaning: > ifp-> if_capabilities =3D IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING; > Jacob> to: > ifp-> if_capabilities =3D 0; >=20 > Jacob> This didn't solve the problem completely though. On the remote > Jacob> host I can now see tagged frames from the if_nge host, but the > Jacob> reply frames from the if_em host or not visible at all on the > Jacob> if_nge host (via tcpdump). >=20 > Are you dumping all packets? We've found that you can dump a specific > vlan on nge's, but you can't get good data by dumping the raw port > itself. No matter how it's set, in both Linux and FreeBSD, many nge > chipsets will not show vlan packets from the driver with a tcpdump. >=20 Hmm, you can't probably see it because the hardware is configured to do VLAN tag insertion/removal, and stores VLAN data decoupled from the frame's mbuf chain. And BPF is very unlikely to reconstruct the ETHERTYPE_VLAN packet using this information... Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --jousvV0MzM2p6OtC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAaG0+Ukv4P6juNwoRAvV/AJ41Nb0ekfQcASKwykLPO6RlEuabzACeKEnp KjP3bN5aRLuiXbQAFzz2Gkk= =k7o0 -----END PGP SIGNATURE----- --jousvV0MzM2p6OtC--