netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cannot delete a bridge using 'ip' netlink interface
@ 2011-10-06 17:18 Sridhar Samudrala
  2011-10-06 21:19 ` [PATCH] bridge: fix hang on removal of bridge via netlink Stephen Hemminger
  2011-10-07 20:37 ` Cannot delete a bridge using 'ip' netlink interface Michael Tokarev
  0 siblings, 2 replies; 6+ messages in thread
From: Sridhar Samudrala @ 2011-10-06 17:18 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

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

I see the same behavior even if the bridge is brought down
before trying to delete the bridge.

brctl delbr fails with an error message if the bridge is up.
But it succeeds if the bridge is brought down before doing a delbr
even if it has interfaces attached.

Thanks
Sridhar

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-19  3:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 17:18 Cannot delete a bridge using 'ip' netlink interface Sridhar Samudrala
2011-10-06 21:19 ` [PATCH] bridge: fix hang on removal of bridge via netlink Stephen Hemminger
2011-10-06 23:02   ` Sridhar Samudrala
2011-10-19  3:24     ` David Miller
2011-10-07 20:37 ` Cannot delete a bridge using 'ip' netlink interface Michael Tokarev
2011-10-07 21:22   ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).