netdev: Fix carrier status for down interfaces.
authorJesse Gross <jesse@nicira.com>
Wed, 27 Oct 2010 22:29:16 +0000 (15:29 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 28 Oct 2010 18:19:29 +0000 (11:19 -0700)
commit85da620e9788b473797b95212b916327974e6942
treea38f2de7a3ff589f6cb0275effe13ea803b44f22
parent371e4acc87f79bcf5a28420a61e4c35291727e0f
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-provider.h
lib/netdev-vport.c
lib/netdev.c
lib/netdev.h
ofproto/ofproto-sflow.c
ofproto/ofproto.c
vswitchd/bridge.c