Subject: Re: Cannot delete a bridge using 'ip' netlink interface

From: Michael Tokarev <[email-masked]>
Date: Sat, 08 Oct 2011 00:37:11 +0400

On 06.10.2011 21:18, Sridhar Samudrala wrote:
> On a linux 3.1.0-rc9 system using the latest iproute2, i tried
> creating a bridge and deleting it with an attached interface. 
> 
> Here is the sequence of steps i tried
> ip link add br0 type bridge
> ip link set dev eth1 master br0
> ip link set br0 up
> ip link del br0
> 
> The last command hangs with the following kernel messages
> kernel:unregister_netdevice: waiting for br0 to become free. Usage count = 1

Note that the same thing happens when one tries to rmmod bridge
while it is in use.  I'm trying your patch to see if that helps... ;)

/mjt