summaryrefslogtreecommitdiff
path: root/lib/netdev.h
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-10-27 15:29:16 -0700
committerJesse Gross <jesse@nicira.com>2010-11-16 15:17:38 -0800
commitefa3112b7c340203decf0061e7d1d12be03a150f (patch)
tree250c53a9496f6e3bd213f05f81164de0fb4eb364 /lib/netdev.h
parent58453fde168c5938afe445f8e22f8aa96d02083f (diff)
downloadopenvswitch-lts-1.0.tar.gz
netdev: Fix carrier status for down interfaces.lts-1.0
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
Diffstat (limited to 'lib/netdev.h')
-rw-r--r--lib/netdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev.h b/lib/netdev.h
index cd5c8c300..93997aee7 100644
--- a/lib/netdev.h
+++ b/lib/netdev.h
@@ -127,7 +127,7 @@ int netdev_set_etheraddr(struct netdev *, const uint8_t mac[6]);
int netdev_get_etheraddr(const struct netdev *, uint8_t mac[6]);
/* PHY interface. */
-int netdev_get_carrier(const struct netdev *, bool *carrier);
+bool netdev_get_carrier(const struct netdev *);
int netdev_get_features(struct netdev *,
uint32_t *current, uint32_t *advertised,
uint32_t *supported, uint32_t *peer);