bridge: Immediately drop interfaces that can't be opened.
authorJesse Gross <jesse@nicira.com>
Thu, 29 Apr 2010 21:54:10 +0000 (14:54 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 29 Apr 2010 22:23:10 +0000 (15:23 -0700)
commitceb4559f662c12eeb2bf9e4665ec88e96d990752
tree6a69c18c8f72a3fab2d6a39f248d9c0af58e95d5
parent21291d67574ae857d028c40b2fcc1116b6be6dfa
bridge: Immediately drop interfaces that can't be opened.

Previously we would keep interfaces around that couldn't be opened
because they might be internal interfaces that are created later.
However, this leads to a race condition if the interface appears
after we try to create it and fails since some operations may
succeed.  Instead, give up on the interface immediately if it can't
be opened and isn't internal (which we control and so won't have
this issue).

Bug #2737
vswitchd/bridge.c