brcompat: Add support for bonded interfaces; avoid multiple cfg_read() call.s
authorBen Pfaff <blp@nicira.com>
Tue, 7 Apr 2009 18:10:56 +0000 (11:10 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 7 Apr 2009 18:16:30 +0000 (11:16 -0700)
commit39b01bf7fe4d2c97d305bb16d955ebfa9ca2de53
tree238a7600fa2b2b988bb9a19c1330b6f8c3674361
parent3d1ff7193c52985ce4c2c64cb489a7bf15a3468b
brcompat: Add support for bonded interfaces; avoid multiple cfg_read() call.s

Bonded interfaces have to be looked up under the bonding.* hierarchy, but
the code here didn't know about that.  Also, this was calling cfg_read()
and cfg_write() for every interface to be deleted, which means that our
set of bridges and interfaces could change while we were iterating.  In
theory, they shouldn't have, since the file was locked, but that
assumption still made me nervous so I eliminated it.
vswitchd/brcompatd.c