From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 26 19:17:09 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D4FC16A420 for ; Thu, 26 Jan 2006 19:17:09 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from dbmail-mx4.orcon.co.nz (loadbalancer1.orcon.net.nz [219.88.242.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 983FA43D55 for ; Thu, 26 Jan 2006 19:17:08 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by dbmail-mx4.orcon.co.nz (8.13.5/8.13.5/Debian-3) with ESMTP id k0QJGxZ1029997; Fri, 27 Jan 2006 08:17:00 +1300 Received: by heff.fud.org.nz (Postfix, from userid 1001) id E66971CC1F; Fri, 27 Jan 2006 08:17:05 +1300 (NZDT) Date: Fri, 27 Jan 2006 08:17:05 +1300 From: Andrew Thompson To: Thiago Damas Message-ID: <20060126191705.GB33764@heff.fud.org.nz> References: <20060126172843.GA33764@heff.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-Virus-Scanned: ClamAV 0.88/1252/Fri Jan 27 00:03:25 2006 on dbmail-mx4.orcon.co.nz X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: if_bridge hangs ifconfig X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2006 19:17:09 -0000 On Thu, Jan 26, 2006 at 04:31:48PM -0200, Thiago Damas wrote: > 2006/1/26, Andrew Thompson : > > On Thu, Jan 26, 2006 at 02:49:54PM -0200, Thiago Damas wrote: > > > I'm having some problems using if_bridge, in FreeBSD 6.0 RELEASE. > > > I have the following situation: > > > > > > When using the command "ifconfig bridge0 deletem vr0", its hangs, > > > and sometimes show the error: > > > vr0: refusing to decrement non-positive refcount 0for interface flag 256 > > > > This has been fixed in 6-STABLE and will work in the upcomming 6.1 > > release, see the 2005/11/16 entry in > > > > http://www.freebsd.org/releases/6.0R/errata.html > > > > I would advise upgrading to RELENG_6. > > > > How can I patch my system, 6.0-RELEASE for only this bug? I want to > minimize the downtime? Its possible? You can apply this patch http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_bridge.c.diff?r1=1.32&r2=1.34 If you are using modules then you dont even need to reboot, patch the file, make+install /sys/modules/if_bridge, kldunload+kldload. cheers, Andrew