vswitchd: Factor out iteration over interfaces with deletion.
authorBen Pfaff <blp@nicira.com>
Thu, 30 Jul 2009 22:56:17 +0000 (15:56 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 30 Jul 2009 23:07:14 +0000 (16:07 -0700)
commit6ae39834ad29c7d524a8c2a15207abace221ee2f
tree5f8bbe1bc778369a070a5039857d48fadf4cc45e
parentfa60c01995566c3ec0f7a153aaafa6826128a23a
vswitchd: Factor out iteration over interfaces with deletion.

Two different pieces of code in vswitchd were both iterating over all
the interfaces in a bridge and deleting some of them, then deleting any
ports that ended up with no interfaces because of this.  This commit
factors this operation out into a helper function.
vswitchd/bridge.c