vswitch: More accurately identify slave status for compatibility
authorJustin Pettit <jpettit@nicira.com>
Tue, 15 Sep 2009 09:08:08 +0000 (02:08 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 18 Sep 2009 06:04:08 +0000 (23:04 -0700)
commit6643c03b4fbeb81f88e79162e48e5599aca5c831
treee416c0e12e60381e7b2db56f330dd74b54122f7a
parent850887473a7093066db80569c9f2f9097941d6bc
vswitch: More accurately identify slave status for compatibility

Ben Pfaff dug through the kernel sources and reported that
bond_miimon_inspect() supports four BOND_LINK_* states:

       * BOND_LINK_UP: carrier detected, updelay has passed.

       * BOND_LINK_FAIL: carrier lost, downdelay in progress.

       * BOND_LINK_DOWN: carrier lost, downdelay has passed.

       * BOND_LINK_BACK: carrier detected, updelay in progress.

And that bond_info_show_slave() only considers BOND_LINK_UP to be "up"
and anything else to be "down".

Thanks for doing this and suggesting a fix, Ben!
vswitchd/bridge.c