From owner-freebsd-net@FreeBSD.ORG Mon Mar 29 09:36:52 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 0279516A4CE; Mon, 29 Mar 2004 09:36:52 -0800 (PST) Received: from bes.amduat.net (bes.amduat.net [206.124.149.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8804643D48; Mon, 29 Mar 2004 09:36:51 -0800 (PST) (envelope-from jbarrett@amduat.net) Received: from osiris.amduat.net ([63.115.16.66]) (AUTH: LOGIN jbarrett, SSL: TLSv1/SSLv3,128bits,RC4-MD5) by bes.amduat.net with esmtp; Mon, 29 Mar 2004 09:36:50 -0800 From: "Jacob S. Barrett" To: Ruslan Ermilov Date: Mon, 29 Mar 2004 09:36:49 -0800 User-Agent: KMail/1.6.1 References: <200403251118.40718.jbarrett@amduat.net> <200403270848.37996.jbarrett@amduat.net> <20040329081224.GC70021@ip.net.ua> In-Reply-To: <20040329081224.GC70021@ip.net.ua> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403290936.49345.jbarrett@amduat.net> 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 17:36:52 -0000 On Monday 29 March 2004 12:12 am, Ruslan Ermilov wrote: > No, this is not of course expected. Can you add some debug printfs > in the ng_vlan.c:ng_vlan_rcvdata() and see if it ever receives the > VLAN tag, and if so, print its value (perhaps the tag is entered by > a driver in a network byte order). Bingo... I will dig around in if_nge.c to figure out where to swap the bytes. > Well, for IP/TCP/UDP checksumming, it's possible to switch the > corresponding bit in the interface's enabled capabilities field. > OTOH, switching VLAN stripping on/off requires reprogramming of > the hardware. > > Generally, if the hardware supports IP/TCP/UDP checksumming and > or VLAN tag removal/insertion, it's better to use it. We'd > better find the root of the problem and fix it. ;) I agree, so now that we have found it I will try to fix it. Thanks for your help. -- Jacob S. Barrett jbarrett@amduat.net www.amduat.net "I don't suffer from insanity, I enjoy every minute of it."