From alex@fump.kawo2.rwth-aachen.de Thu Jun 5 07:24:58 2003 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B8B837B401 for ; Thu, 5 Jun 2003 07:24:58 -0700 (PDT) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6731243F3F for ; Thu, 5 Jun 2003 07:24:57 -0700 (PDT) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: from ms-2 (ms-2 [134.130.3.131]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0HG0006FPI6ZLG@ms-dienst.rz.rwth-aachen.de> for FreeBSD-gnats-submit@freebsd.org; Thu, 05 Jun 2003 16:13:47 +0200 (MEST) Received: from relay.RWTH-Aachen.DE ([134.130.3.1]) by ms-2 (MailMonitor for SMTP v1.2.2 ) ; Thu, 05 Jun 2003 16:13:47 +0200 (MEST) Received: from kawoserv.kawo2.rwth-aachen.de (root@kawoserv.kawo2.RWTH-Aachen.DE [134.130.180.1]) by relay.rwth-aachen.de (8.12.9/8.12.7-1) with ESMTP id h55EDlNY012440 for ; Thu, 05 Jun 2003 16:13:47 +0200 (MEST) Received: from fump.kawo2.rwth-aachen.de (fump.kawo2.rwth-aachen.de [134.130.181.148]) by kawoserv.kawo2.rwth-aachen.de (8.11.6/8.9.3) with ESMTP id h55EDkd22662 for ; Thu, 05 Jun 2003 16:13:46 +0200 Received: from fump.kawo2.rwth-aachen.de (localhost.kawo2.rwth-aachen.de [127.0.0.1]) by fump.kawo2.rwth-aachen.de (8.12.9/8.12.9) with ESMTP id h55EDk2G026164 for ; Thu, 05 Jun 2003 16:13:46 +0200 Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.12.9/8.12.9/Submit) id h55EDk92026163; Thu, 05 Jun 2003 16:13:46 +0200 (CEST) Message-Id: <200306051413.h55EDk92026163@fump.kawo2.rwth-aachen.de> Date: Thu, 05 Jun 2003 16:13:46 +0200 (CEST) From: Alexander Langer Reply-To: Alexander Langer To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: em0 not in promisc mode when bridging. X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 52966 >Category: kern >Synopsis: em0 not in promisc mode when bridging. >Confidential: no >Severity: serious >Priority: medium >Responsible: pdeuskar >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 05 07:30:10 PDT 2003 >Closed-Date: Tue Sep 30 15:34:38 PDT 2003 >Last-Modified: Tue Sep 30 15:34:38 PDT 2003 >Originator: Alexander Langer >Release: FreeBSD 4.8-RELEASE/STABLE >Organization: bla >Environment: >Description: (Note: the same worked flawlessly with two fxp cards, so it's defenitely an em driver problem) With two 82540EM cards on em0/em1, enabling the bridge only seems to set the em1 into promisc mode. The em0 DOES show the promisc flag on "ifconfig", but it's actually not the case (no packets but broadcasts showing off in tcpdump, briding does not work). Doing manual "ifconfig em0 promisc" fixes this. Doing manual "em0 -promisc" then does actually -promisc the driver, but not the flag in the ifconfig output. Doing "ifconfig em0 down" does down the card, but it's still listed "up" in ifconfig. Disabling the bridge only does remove em1 from promisc mode again: em0 is still listed as "promisc", em1 is not. As both "ifconfig up/down" and "ifconfig promisc/-promisc" seem to have effect on em1 AND em0, this seems to be ok. But since em0 is still listed UP though being DOWN and PROMISC though defenitely NOT in promisc mode, I have the feeling that is a bug in the status register if you have 2 em cards in a box. And this is probably also the reason why briding does not work until manually set to promisc mode - the kernel thinks em0 is already in promisc mode, thus only sets em1 to promisc mode. >How-To-Repeat: see above >Fix: no fix >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->pdeuskar Responsible-Changed-By: alex Responsible-Changed-When: Thu Jun 5 09:12:33 PDT 2003 Responsible-Changed-Why: over to em maintainer http://www.freebsd.org/cgi/query-pr.cgi?pr=52966 State-Changed-From-To: open->closed State-Changed-By: pdeuskar State-Changed-When: Tue Sep 30 15:33:37 PDT 2003 State-Changed-Why: The driver did not remember the promiscuous settings. Fixed in 1.7.16 version of the driver. http://www.freebsd.org/cgi/query-pr.cgi?pr=52966 >Unformatted: