From nobody@FreeBSD.org  Fri Oct 21 17:00:46 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 58AAF16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2005 17:00:46 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 27EC843D48
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2005 17:00:46 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9LH0j5K000143
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2005 17:00:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9LH0jcm000139;
	Fri, 21 Oct 2005 17:00:45 GMT
	(envelope-from nobody)
Message-Id: <200510211700.j9LH0jcm000139@www.freebsd.org>
Date: Fri, 21 Oct 2005 17:00:45 GMT
From: Kerry Throw <kthrow1@ccrs.nrcan.gc.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: unable to tear down bridge (if_bridge)
X-Send-Pr-Version: www-2.3

>Number:         87793
>Category:       kern
>Synopsis:       unable to tear down bridge (if_bridge)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thompsa
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 21 17:10:15 GMT 2005
>Closed-Date:    Tue Nov 15 17:23:49 GMT 2005
>Last-Modified:  Tue Nov 15 17:23:49 GMT 2005
>Originator:     Kerry Throw
>Release:        6.0-RC1
>Organization:
CCRS
>Environment:
FreeBSD 6.0-RC1 #0 
Generic
i386
>Description:
if_bridge is configured to load in loader.conf

bridge0 created in rc.conf:

cloned_interfaces="bridge0"
ifconfig_bridge0="addm xl0 addm bge0 up"

ifconfig bridge0 deletem xl0

or 



once rules are loaded into pf, the bridge cannot be torn down.  Even if the rules have been flushed and pf unloaded and all the interfaces are down

ifconfig bridge0 deletem bge0

hangs and is not killable. 

When trying to unload if_bridge I get the following:

xl0: refusing to decrement non-positive refcount0for interface flags 256
>How-To-Repeat:
              
reboot and try again.
>Fix:
              
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->thompsa 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Sun Oct 23 09:11:27 GMT 2005 
Responsible-Changed-Why:  
To if_bridge(4) maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87793 

From: Andrew Thompson <thompsa@freebsd.org>
To: bug-followup@FreeBSD.org, kthrow1@ccrs.nrcan.gc.ca
Cc:  
Subject: Re: kern/87793: unable to tear down bridge (if_bridge)
Date: Wed, 26 Oct 2005 15:21:12 +1300

 Hi,
 
 
 I am looking into this and could do with a bit more info. Can you send
 me the full output from 'ifconfig' and also tell me if it still happens
 if the network cables are unplugged first.
 
 
 thanks,
 Andrew

From: kthrow1 <kthrow1@CCRS.NRCan.gc.ca>
To: Andrew Thompson <thompsa@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/87793: unable to tear down bridge (if_bridge)
Date: Wed, 26 Oct 2005 08:28:02 -0400

 Andrew Thompson wrote:
 > Hi,
 > 
 > 
 > I am looking into this and could do with a bit more info. Can you send
 > me the full output from 'ifconfig' and also tell me if it still happens
 > if the network cables are unplugged first.
 > 
 > 
 > thanks,
 > Andrew
 > 
 
 Yes, it still happens. ps auxl shows that the ifconfig process is running in the if_bridge module
 
 test-a# more ifconfig.output
 xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
          options=9<RXCSUM,VLAN_MTU>
          inet6 fe80::2b0:d0ff:feab:d12f%xl0 prefixlen 64 scopeid 0x1
          ether 00:b0:d0:ab:d1:2f
          media: Ethernet autoselect (100baseTX)
          status: active
 bge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
          options=1a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
          inet6 fe80::204:76ff:fee0:1920%bge0 prefixlen 64 scopeid 0x2
          ether 00:04:76:e0:19:20
          media: Ethernet autoselect (100baseTX <half-duplex>)
          status: active
 xl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
          options=9<RXCSUM,VLAN_MTU>
          ether 00:01:02:c6:bb:ab
          media: Ethernet autoselect (none)
          status: no carrier
 plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
 pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
          inet6 ::1 prefixlen 128
          inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
          inet 127.0.0.1 netmask 0xff000000
 bridge0: flags=8041<UP,RUNNING,MULTICAST> mtu 1500
          ether ac:de:48:52:83:da
          priority 32768 hellotime 2 fwddelay 15 maxage 20
          member: xl0 flags=3<LEARNING,DISCOVER>
          member: bge0 flags=3<LEARNING,DISCOVER>
State-Changed-From-To: open->closed 
State-Changed-By: thompsa 
State-Changed-When: Tue Nov 15 17:22:29 GMT 2005 
State-Changed-Why:  
This has been fixed by if_bridge.c r1.33, 1.34. The refcount was getting badly 
out of sync. 



http://www.freebsd.org/cgi/query-pr.cgi?pr=87793 
>Unformatted:
