netdev: Fix carrier status for down interfaces. lts-1.0
authorJesse Gross <jesse@nicira.com>
Wed, 27 Oct 2010 22:29:16 +0000 (15:29 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 16 Nov 2010 23:17:38 +0000 (15:17 -0800)
commitefa3112b7c340203decf0061e7d1d12be03a150f
tree250c53a9496f6e3bd213f05f81164de0fb4eb364
parent58453fde168c5938afe445f8e22f8aa96d02083f
netdev: Fix carrier status for down interfaces.

Currently netdev_get_carrier() returns both a carrier status and
an error code.  However, usage of the error code was inconsistent:
most callers either ignored it or didn't perform their task if an
error occured, which prevented bond rebalancing.  This makes the
handling consistent by translating an error into a down status in
the netdev library.

Bug #3959
lib/netdev-patch.c
lib/netdev-provider.h
lib/netdev-tunnel.c
lib/netdev-vport.c
lib/netdev-vport.h
lib/netdev.c
lib/netdev.h
ofproto/ofproto-sflow.c
ofproto/ofproto.c
vswitchd/bridge.c