From owner-freebsd-current@FreeBSD.ORG Tue Oct 12 14:49:01 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C82716A4CE; Tue, 12 Oct 2004 14:49:01 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E755243D2F; Tue, 12 Oct 2004 14:48:59 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i9CEmvkD037128; Tue, 12 Oct 2004 17:48:57 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 91189-16; Tue, 12 Oct 2004 17:48:57 +0300 (EEST) 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 i9CEmvI1037123; Tue, 12 Oct 2004 17:48:57 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id i9CEmkra085371; Tue, 12 Oct 2004 17:48:46 +0300 (EEST) (envelope-from ru) Date: Tue, 12 Oct 2004 17:48:46 +0300 From: Ruslan Ermilov To: Jung-uk Kim Message-ID: <20041012144846.GA85237@ip.net.ua> References: <9256D57F598E6C41B288AA7DB94F29C902DFB963@pgnmail1.pgnaplikace.cz> <20041012140205.GD29433@cell.sick.ru> <200410121035.59905.jkim@niksun.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <200410121035.59905.jkim@niksun.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: freebsd-current@FreeBSD.org cc: Gleb Smirnoff Subject: Re: Broadcom bge and 802.1Q vlan tags X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 14:49:01 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 12, 2004 at 10:35:59AM -0400, Jung-uk Kim wrote: > On Tuesday 12 October 2004 10:02 am, Gleb Smirnoff wrote: > > On Tue, Oct 12, 2004 at 10:36:27AM +0200, Roub?cek Zdenek > > (T-Systems PragoNet) wrote: R> I have run into a problem with my > > Broadcom NIC (Dell LATITUDE D600). I am not able to detect 802.1Q > > tags on incoming interface with ethereal or tcpdump. All incoming > > packets seems like they are not coming through trunk but as native > > ETH frames, ie. the vlan tag is missing, probably removed before > > being passed to tcpdump? R> > > R> No I have not tested NIC's behaviour on 4.X, but I is working > > with linux (2.6.something kernel probably?) R> > > R> Any ideas what to modify or set so I can detect vlan_tag would > > be very apreciated. > > > > As Ruslan already mentioned, it is impossible to turn off hardware > > VLAN stripping in bge driver. >=20 > It's not true. You can: >=20 > BGE_SETBIT(sc, BGE_RX_MODE, BGE_RXMODE_RX_KEEP_VLAN_DIAG)); >=20 > to turn off VLAN tag stripping. >=20 I meant that the driver should check for IFCAP_VLAN_HWTAGGING bit in its if_capenable to allow user-configurable hardware VLAN tagging, as well as allowing to set/reset it in its SIOCSIFCAP handler, and this driver doesn't currently do it. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBa+7OqRfpzJluFF4RAlRKAJ4wsuObsvZybtFfLlJNqsrc2cBiPwCcCTMw vwbzQ5zhvjJZhqJBLvKK6Is= =YInm -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--