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

From: Michael Tokarev <[email-masked]>
Date: Sat, 08 Oct 2011 01:22:40 +0400

On 08.10.2011 00:37, Michael Tokarev wrote:
> 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... ;)

..And with the patch sent in this thread, bridge module can be
removed and inserted again with proper cleanup.

So you can add my

Tested-Off-By: Michael Tokarev <[email-masked]>

too, if necessary :)

Thanks,

/mjt