From owner-freebsd-net@FreeBSD.ORG Thu Jan 27 22:41:16 2005 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 CACC816A4CE for ; Thu, 27 Jan 2005 22:41:16 +0000 (GMT) Received: from mailhost.schluting.com (schluting.com [131.252.214.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94E1643D46 for ; Thu, 27 Jan 2005 22:41:16 +0000 (GMT) (envelope-from charlie@schluting.com) Received: from localhost (localhost [127.0.0.1]) by mailhost.schluting.com (Postfix) with ESMTP id 352E72114 for ; Thu, 27 Jan 2005 14:41:16 -0800 (PST) Received: from mailhost.schluting.com ([127.0.0.1]) by localhost (schluting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 92713-05 for ; Thu, 27 Jan 2005 14:41:10 -0800 (PST) Received: from [131.252.213.83] (schrodinger.cat.pdx.edu [131.252.213.83]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhost.schluting.com (Postfix) with ESMTP id 5EB5320FE for ; Thu, 27 Jan 2005 14:41:10 -0800 (PST) Message-ID: <41F96E06.7020507@schluting.com> Date: Thu, 27 Jan 2005 14:41:10 -0800 From: Charlie Schluting User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: "freebsd-net@freebsd.org" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by your mom at schluting.com Subject: vlan + promisc + em(4) 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: Thu, 27 Jan 2005 22:41:16 -0000 On 1/20/2005 2:33 AM, Robert Watson wrote: > Try "ifconfig em0 -vlanhwtag" and see if that helps. If not, take a look > in if_em.c:em_setup_interface(), and you'll see two lines like this: > > #if __FreeBSD_version >= 500000 > ifp->if_capabilities |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU; > ifp->if_capenable |= IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_MTU; > #endif > > Delete the contents "|FCAP_VLAN_HWTAGGING |" from each line, and that > should disable support for hardware vlan tagging and stripping in the > driver. There are several bugs relating to the handling of hardware vlan > tagging and promiscuous mode in both if_re and if_em. I had hoped to have > a chance to resolve them over the past couple of months but have not as > yet been able to do so. I'm sad to report that neither worked. After doing the ifconfig -vlanhwtag, the interface stopped recieving packets in about an hour. After deleting IFCAP_VLAN_HWTAGGING and recompiling/rebooting, it worked for about 4 hours, then stopped. tcpdump sees nothing when it happens.. bringing the interface down; then back up seems to fix it. We've got a cron on the job now :) -Charlie